/*Garbata Font*/
@font-face {
    font-family: 'Garbata Regular';
    src: url('/assets/fonts/GarbataTrial-Regular.eot');
    src: url('/assets/fonts/GarbataTrial-Regular.eot?#iefix') format('embedded-opentype'),
        url('/assets/fonts/GarbataTrial-Regular.woff2') format('woff2'),
        url('/assets/fonts/GarbataTrial-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Garbata Extralight';
    src: url('/assets/fonts/GarbataTrial-Extralight.eot');
    src: url('/assets/fonts/GarbataTrial-Extralight.eot') format('embedded-opentype'),
        url('/assets/fonts/GarbataTrial-Extralight.woff2') format('woff2'),
        url('/assets/fonts/GarbataTrial-Extralight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Garbata Bold';
    src: url('/assets/fonts/GarbataTrial-Bold.eot');
    src: url('/assets/fonts/GarbataTrial-Bold.eot?#iefix') format('embedded-opentype'),
        url('/assets/fonts/GarbataTrial-Bold.woff2') format('woff2'),
        url('/assets/fonts/GarbataTrial-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root{
  /* Layout */
  --section-min-h: 100svh; /* mejor que 100vh en móvil */
  --content-max-w: 1100px;
  --content-gap: 16px;
  --page-pad: 24px;

  /* Video */
  --bg-blur: 10px;
  --bg-opacity: 0.55;

  /* UI */
  --border: rgba(15, 15, 15, 0.12);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 20px;

  /* Colors */
  --text: #0f0f0f;
  --bg: #ffffff;
  --muted: rgba(15,15,15,.65);
  --soft: #f7f2f1;
}

/* Reset base */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  width: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Arimo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow-x: hidden; /* evita scroll horizontal */
}

img, video { display: block; max-width: 100%; }

h2 {
  margin: 0;
  text-transform: uppercase;
  font-family: "Garbata Regular", -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: .06em;
}

.page {
  position: relative;
  width: 100%;
}

/* Secciones base */
.section{
  position: relative;
  width: 100%;
  min-height: var(--section-min-h);
}

/* Fallback si el browser no soporta svh */
@supports not (height: 100svh){
  .section{ min-height: 100vh; }
}

/* HOME */
.home{
  /* deja el video como fondo */
  overflow: hidden;
}

/* Video de fondo */
.video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--bg-blur)) brightness(1) opacity(var(--bg-opacity));
  transform: scale(1.05);
  will-change: transform, filter, opacity;
}
.video-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 50%,
    rgba(255,255,255,.35) 0%,
    rgba(255,255,255,.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Contenido Home */
.content {
  position: relative;
  z-index: 2;
  min-height: var(--section-min-h);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--page-pad);
}
@supports not (height: 100svh){
  .content{ min-height: 100vh; }
}

.stack {
  width: min(100%, var(--content-max-w));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--content-gap);
  margin-inline: auto;
}

.logo {
  width: min(68vw, 420px);
  height: auto;
}

/* Botón */
.btn-exovelle {
  display: inline-block;
  background-color: #f0ebe1;
  color: #373636;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  outline: 1px solid rgba(0,0,0,0.15);
  outline-offset: -1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.btn-exovelle:hover {
  background-color: #efeeed;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ABOUT + PRODUCTS: estructura */
.section-inner{
  width: min(100%, var(--content-max-w));
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px) var(--page-pad);
}

.section-header{
  margin-bottom: 22px;
}

.section-title{
  margin: 0 0 8px 0;
  font-family: "Garbata Regular", -apple-system, Segoe UI, Roboto, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section-subtitle{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* ABOUT (layout como referencia) */
.about{
  background: transparent;
  width: 100%;
  min-height: 100svh;
}
@supports not (height: 100svh){
  .about{ min-height: 100vh; }
}

.about-grid{
  min-height: inherit;
  display: grid;
  grid-template-columns: 1fr; /* móvil: texto arriba, video abajo */
}

/* --- TEXTO --- */
.about-copy{
  background: #eee7dc; /* beige */
  color: #2b2b2b;
  display: grid;
  align-items: center;
  padding: clamp(44px, 6vw, 84px) 24px;
}

.about-copy-inner{
  width: min(100%, 760px);
  margin-inline: auto;
  text-align: center;
}

.about-icon{
  width: 56px;
  height: auto;
  margin: 0 auto 18px;
  filter: invert(1); /* tu icono es blanco, aquí lo pasamos a negro */
}

.about-title{
  margin: 0 0 20px 0;
  font-family: "Garbata Regular", -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  font-size: clamp(44px, 7vw, 74px);
}

.about-text{
  font-family: "Arimo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
}

.about-text p{
  margin: 0;
}
.about-text p + p{
  margin-top: 28px;
}

/* --- VIDEO --- */
.about-media{
  position: relative;
  min-height: 44svh; /* móvil: bloque inferior como en referencia */
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
}
@supports not (height: 100svh){
  .about-media{ min-height: 44vh; }
}

.about-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(.95);
  transform: scale(1.03);
}

.about-media-veil{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.35);
  z-index: 1;
  pointer-events: none;
}

.about-overlay{
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-content: center;   
  justify-items: center;   
  gap: 28px;              
  text-align: center;
}


.about-quote{
  font-family: "Garbata Regular", -apple-system, Segoe UI, Roboto, sans-serif;
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-weight: 400;
  line-height: 1.25;
  font-size: clamp(24px,4vw,32px);
  text-wrap: balance;
}

.video-play-button {
    position: relative;             
    z-index: 3;                      
    transform: none;
    box-sizing: content-box;
    display: grid;
    place-items: center;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    padding: 18px 20px 18px 28px;
}

.video-play-button:before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 80px;
  height: 80px;
  background: #f7e1dd;
  border-radius: 50%;
  animation: pulse-border 1500ms ease-out infinite;
}

.video-play-button:after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 80px;
  height: 80px;
  background: #f7e1dd;
  border-radius: 50%;
  transition: all 200ms;
}

.video-play-button:hover:after { background-color: #eacdc7; }


.video-play-button img {
  position: relative;
  z-index: 3;
  max-width: 100%;
  width: auto;
  height: auto;
}

.video-play-button span {
  display: block;
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 32px solid #fff;
	border-top: 22px solid transparent;
	border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

/* MÓVIL: texto arriba, video abajo */
@media (max-width: 1023px){
  .about-copy{ order: 1; }
  .about-media{ order: 2; }
}

/* DESKTOP: video izquierda, texto derecha */
@media (min-width: 1024px){
  .about-media{ order: 1; }
  .about-copy{ order: 2; }
}

.about-video{ z-index: 0; }
.about-media-veil{ z-index: 1; }
.about-quote{ z-index: 2; }
.video-play-button{ z-index: 3; }


/* --- ESCRITORIO: 2 columnas, video a la izquierda, texto a la derecha --- */
@media (min-width: 1024px){
  .about-grid{
    grid-template-columns: 1fr 1fr;
    min-height: 100svh;
  }
  @supports not (height: 100svh){
    .about-grid{ min-height: 100vh; }
  }

  .about-media{
    min-height: auto;
    padding: 0;
  }

  .about-copy{
    padding: 72px 64px;
  }

  .about-copy-inner{
    text-align: left;
    margin-left: 0;
  }

  .about-icon{
    margin: 0 0 18px 0;
  }

  .about-title{
    font-size: 64px;
  }

  .about-text{
    font-size: 20px;
    max-width: 54ch;
  }

  .about-quote{
    text-align: center;
    max-width: 28ch;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .about-video{ transform: none; }
}

/* LIGHTBOX ABOUT */
.video-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* se activa con .is-open */
}

.video-lightbox.is-open{
  display: block;
}

.video-lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.video-lightbox__dialog{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.video-lightbox__frame{
  position: relative;
  width: min(980px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
}

.video-lightbox__frame video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-lightbox__close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.video-lightbox__close:hover{
  background: rgba(255,255,255,.18);
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .video-lightbox__frame{ box-shadow: none; }
}

/* PRODUCTS */
.products{
  width: 100%;
  background: #eee7dc; /* barra superior similar */
}

.products-header{
  width: 100%;
  padding: 22px 16px;
  display: grid;
  place-items: center;
}

.products-title{
  margin: 0;
  font-family: "Garbata Regular", -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  color: #3a3a3a;
  font-size: clamp(28px, 4vw, 44px);
}

/* GRID BASE */
.products-grid{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr; /* móvil por defecto */
}

/* TILE BASE */
.product-tile{
  display: block;
  width: 100%;
  height: 33.333svh; /* móvil: 1/3 de pantalla */
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.product-front,
.product-back{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.product-front img,
.product-back img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-front{
  transform: translateX(0);
  transition: transform .7s ease;
  will-change: transform;
  z-index: 2;
}

/* Overlay encima de imágenes */
.product-overlay{
  position: absolute;
  inset: 0;
  z-index: 3;

  pointer-events: none; /* el <a> completo sigue siendo clickeable */
}

.product-title{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* centrado */
  margin: 0;

  text-align: center;
  font-family: "Garbata Regular", -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  color: #373636;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.1;

  transition: top 0.7s ease, transform 0.7s ease;
  will-change: top, transform;
}

.product-cta{
  position: absolute;
  left: 50%;
  bottom: 0;

  transform: translate(-50%, 100%); /* fuera del contenedor */
  opacity: 0;

  padding: 16px 32px;
  border-radius: 999px;
  background: #eee7dc;

  font-family: "Arimo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 14px;
  color: #3a3a3a;

  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  outline: 1px solid rgba(0,0,0,0.15);
  outline-offset: -1px;

  transition:
    transform 0.7s ease,
    opacity 0.7s ease;

  will-change: transform, opacity;
}

/*HOVER PRODUCTO*/
@media (hover: hover) and (pointer: fine){
  .product-tile:hover .product-front{
    transform: translateX(-100%);
  }
  .product-tile:hover .product-title{
    top: 15px;
    transform: translate(-50%, 0);
  }
  .product-tile:hover .product-cta{
    bottom: 15px;
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* fallback svh */
@supports not (height: 100svh){
  .product-tile{
    height: 33.333vh;
  }
}


/* DESKTOP */
@media (min-width: 1024px){
  .products-grid{
    grid-template-columns: repeat(4, 1fr); /* 4 por fila */
  }

  .product-tile{
    height: 65svh; /* 80% alto pantalla */
  }

  @supports not (height: 100svh){
    .product-tile{
      height: 65vh;
    }
  }
}

/* FOOTER */
.footer{
  width: 100%;
  background: #3b3b3b;
  color: #fff;
}

.footer-inner{
  width: min(100%, 1100px);
  margin-inline: auto;
  padding: 20px 24px 30px;
  display: grid;
  gap: 20px;
}

.footer-top{
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  row-gap: 40px;
}

.footer-col{
  display: grid;
  gap: 14px;
}

.footer-heading{
  margin: 0;
 font-family: "Garbata Regular", -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: 0.01em;
}

.footer-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.footer-link{
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
}

.footer-link:hover{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-brand{
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.footer-icon{
  width: 58px;
  height: auto;
  margin-bottom: 2px;
}

.footer-brand-title{
  font-family: "Arimo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: 0.01em;
}

.footer-brand-subtitle{
  font-family: "Arimo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 22px);
}

/* Desktop Footer*/
@media (min-width: 900px){
  .footer-inner{
    padding: 35px 24px 45px;
  }

  .footer-top{
    grid-template-columns: auto auto;
    column-gap: 120px;
    justify-content: center;
    align-items: start;
    text-align: left;
    justify-items: start;
  }

  .footer-col{
    justify-items: start;
  }

  .footer-icon{
    width: 56px;
  }

}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .btn-exovelle { transition: none; }
  .video-wrap video {
    transform: none;
    will-change: auto;
  }
}
