/* Rogienny Herrera · Portafolio UGC */

@font-face {
  font-family: "Dastin";
  src: url("/assets/fonts/Dastin.otf") format("opentype");
  font-display: swap;
}

:root {
  --vino: #410101;
  --borgona: #690b23;
  --caramelo: #caa183;
  --caramelo-claro: #e3c7b1;
  --caramelo-oscuro: #a8774f;
  --caramelo-texto: #8f5d38; /* caramelo para textos pequeños: contraste 4.8:1 sobre crema */
  --crema: #f7efe8;
  --arena: #ecdccf;
  --tinta: #2b0a0a;
  --texto: #4a2a2a;

  --display: "Dastin", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* Foco visible al navegar con teclado */
:focus-visible { outline: 2px solid var(--caramelo-texto); outline-offset: 3px; }
.videos :focus-visible, .contact :focus-visible, .modal :focus-visible { outline-color: var(--caramelo-claro); }
.contact__band :focus-visible { outline-color: var(--caramelo-texto); }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 6vw, 84px) 0; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  background: var(--caramelo);
  color: var(--vino);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--caramelo);
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--crema); border-color: var(--crema); transform: translateY(-2px); }
.btn--dark { background: var(--vino); color: var(--crema); border-color: var(--vino); }
.btn--dark:hover { background: var(--borgona); border-color: var(--borgona); color: var(--crema); }
.btn--line { background: transparent; color: var(--vino); border-color: var(--vino); }
.btn--line:hover { background: var(--vino); color: var(--crema); border-color: var(--vino); }
.btn--small { padding: 10px 20px; font-size: 14px; }

/* Menú: barra flotante (el fondo va en ::before) */
.nav {
  position: fixed;
  top: 14px; left: 16px; right: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(250, 244, 238, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(169, 119, 79, .22);
  box-shadow: 0 10px 30px rgba(65, 1, 1, .12);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled::before { background: rgba(250, 244, 238, .9); box-shadow: 0 12px 34px rgba(30, 2, 2, .22); }
.nav__logo { display: block; }
.nav__logo img { width: 44px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) {
  color: var(--vino);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
  opacity: .85;
  transition: opacity .2s, color .2s;
}
.nav__links a:not(.btn):hover { opacity: 1; color: var(--borgona); }
.nav .btn--small { padding: 12px 24px; }
.cta-short { display: none; }
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  border: 1px solid rgba(65, 1, 1, .22);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1;
}
.lang span { padding: 6px 8px; border-radius: 999px; color: var(--vino); opacity: .55; transition: background .2s, color .2s, opacity .2s; }
.lang span.is-on { background: var(--vino); color: var(--crema); opacity: 1; }

/* Portada (estilo editorial: crema, palabra gigante, foto delante) */
.hero {
  position: relative;
  min-height: max(100svh, 700px);
  background:
    linear-gradient(118deg, transparent 28%, rgba(255, 255, 255, .55) 40%, transparent 52%),
    linear-gradient(140deg, transparent 52%, rgba(255, 255, 255, .4) 62%, transparent 72%),
    radial-gradient(90% 60% at 10% 100%, rgba(202, 161, 131, .28), transparent 60%),
    linear-gradient(160deg, #f8f0e8, #eee0d3);
  color: var(--tinta);
  overflow: hidden;
}
/* El contenido de la portada usa el mismo ancho que las demás secciones; las medidas van contra ese marco (cqw) */
.hero__frame {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: inherit;
  container-type: inline-size;
}
.hero__top {
  position: absolute;
  top: 92px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--vino);
}
.hero__top i { font-style: normal; color: var(--caramelo); }
.hero__word {
  position: absolute;
  top: 116px; left: var(--gutter); right: var(--gutter);
  margin: 0;
  text-align: center;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: var(--ws, 15cqw);
  line-height: .82;
  white-space: nowrap;
  color: var(--vino);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.hero__photo {
  position: absolute;
  top: calc(116px + var(--ws, 15cqw) * .38); bottom: 0; right: 9cqw;
  margin: 0;
  z-index: 2;
}
.hero__photo img { height: 100%; width: auto; max-width: 44cqw; object-fit: contain; object-position: bottom; }
.hero__badge {
  position: absolute;
  right: var(--gutter); bottom: 18%;
  width: clamp(110px, 11cqw, 150px);
  aspect-ratio: 1;
  z-index: 3;
}
.hero__badge svg { width: 100%; height: 100%; animation: spin 26s linear infinite; overflow: visible; }
.hero__badge text { font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 5px; text-transform: uppercase; fill: var(--vino); }
.hero__badge img { position: absolute; inset: 0; margin: auto; width: 46%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__text {
  position: relative;
  z-index: 3;
  max-width: calc(48cqw + var(--gutter));
  padding: calc(116px + var(--ws, 15cqw) * .82 + 14px) 0 44px var(--gutter);
}
.hero__hello {
  font-family: "Allura", cursive;
  font-size: clamp(34px, 3.4cqw, 44px);
  line-height: 1;
  color: var(--caramelo-oscuro);
  margin: 0 0 -.05em .1em;
}
.hero__name {
  font-family: var(--display);
  font-size: clamp(56px, min(10.4cqw, 13vh), 132px);
  line-height: .88;
  text-transform: uppercase;
  color: var(--vino);
  margin-bottom: 18px;
}
.hero__role {
  font-size: clamp(13px, 1.1cqw, 15px);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--caramelo-texto);
  margin-bottom: 18px;
}
.hero__lead { font-size: 15px; max-width: 36ch; color: var(--texto); margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__social { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.hero__social a { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--vino); text-decoration: none; transition: color .2s; }
.hero__social a:hover { color: var(--borgona); }
.hero__social i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(65, 1, 1, .35); }
.hero__social svg { width: 16px; height: 16px; }

/* Cinta de marcas: fila clara y quieta en pantallas grandes; en el celular se desliza */
.brands {
  background: var(--crema);
  border-top: 1px solid rgba(169, 119, 79, .16);
  padding: clamp(30px, 4vw, 44px) var(--gutter);
  overflow: hidden;
}
.brands__title {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  max-width: var(--max);
  margin: 0 auto clamp(22px, 3vw, 30px);
  font-family: var(--body);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--caramelo-texto);
  white-space: nowrap;
}
.brands__title::before, .brands__title::after { content: ""; flex: 1; height: 1px; background: rgba(169, 119, 79, .45); }
/* Con solo dos marcas la fila queda quieta y centrada en todas las pantallas. Para volver a moverla
   (con 5 o más logos): duplicar la lista con aria-hidden="true" y poner aquí
   width: max-content; animation: marquee 30s linear infinite; y la máscara en .marquee */
.marquee__track { display: flex; justify-content: center; }
.marquee__list { display: flex; align-items: center; flex-shrink: 0; }
.marquee__list li { padding: 0 clamp(26px, 3.6vw, 52px); display: flex; align-items: center; }
.marquee__list img { height: calc(var(--h, 44px) * .78); width: auto; max-width: none; opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee { max-width: var(--max); margin: 0 auto; }
@media (max-width: 899px) {
  .brands__title { white-space: normal; text-align: center; letter-spacing: .2em; }
}

/* Sobre mí: herramientas | texto | foto en arco */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr .62fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.about__tools, .about__text { padding-top: 6px; }
.about__tools { padding-right: clamp(28px, 4vw, 64px); border-right: 1px solid rgba(169, 119, 79, .35); }
.about__label {
  display: flex; align-items: center; gap: 14px;
  height: 24px;
  white-space: nowrap;
  font-family: var(--body);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tinta);
  margin-bottom: 30px;
}
.about__tools .about__label::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: rgba(169, 119, 79, .6); }
.about__label--star span { color: var(--caramelo); font-size: 1.3em; letter-spacing: 0; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 12px; }
.tools li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.3;
  color: var(--texto);
}
.tool__icon {
  display: grid; place-items: center;
  width: clamp(50px, 4.6vw, 62px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--borgona);
  color: var(--crema);
  transition: transform .25s, background .25s;
}
.tools li:hover .tool__icon { transform: translateY(-3px); background: var(--vino); }
.tool__icon b { font-family: var(--body); font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: 0; text-transform: none; }
.tool__icon svg { width: 46%; height: 46%; }
.tool__icon--app svg { width: 50%; height: 50%; }
.about__text p { font-size: 16px; line-height: 1.85; max-width: 46ch; }
.about__text p:first-of-type { margin-top: 0; }
.about__text .about__sign {
  font-family: "Allura", cursive;
  font-size: clamp(38px, 3.6vw, 50px);
  line-height: 1;
  color: var(--caramelo-oscuro);
  margin: 10px 0 0;
}
.about__photo {
  position: relative;
  margin: 0;
  min-height: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--arena), #e2cbb9);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 88%; }

/* Videos */
.videos {
  color: var(--crema);
  /* resplandor suave sobre el vino */
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(150, 30, 55, .55), transparent 70%),
    linear-gradient(118deg, transparent 35%, rgba(202, 161, 131, .07) 47%, transparent 59%),
    radial-gradient(70% 45% at 50% 62%, rgba(202, 161, 131, .08), transparent 70%),
    radial-gradient(55% 60% at 0% 100%, rgba(20, 0, 0, .45), transparent 70%),
    var(--vino);
}
.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.row-head__kicker { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--caramelo-claro); margin-bottom: 6px; }
.row-head__title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--caramelo);
  display: flex; align-items: center; gap: 14px;
}
.row-head__title span { font-family: var(--body); font-size: .38em; color: var(--caramelo); }
.row-head__link {
  font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--caramelo-claro);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 8px;
  transition: color .2s;
}
.row-head__link span { font-size: 18px; letter-spacing: 0; transition: transform .2s; }
.row-head__link:hover { color: var(--crema); }
.row-head__link:hover span { transform: translateX(4px); }
.reels-cinta {
  --hueco: clamp(16px, 2vw, 28px);
  --fundido: clamp(32px, 8%, 110px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fundido), #000 calc(100% - var(--fundido)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fundido), #000 calc(100% - var(--fundido)), transparent);
  padding: 8px 0 4px;
}
/* La lista va dos veces (la copia la agrega main.js) y se desliza la mitad: así no se nota el corte */
.reels {
  display: flex;
  gap: var(--hueco);
  width: max-content;
  animation: reels-desliza calc(var(--piezas, 7) * 5.5s) linear infinite;
  will-change: translate;
}
/* Pestañas de categoría */
.videos .row-head { margin-bottom: clamp(22px, 3vw, 32px); }
.reel-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(26px, 3.5vw, 40px); }
.reel-tabs button {
  padding: 9px 18px;
  border: 1px solid rgba(202, 161, 131, .45); border-radius: 999px;
  background: transparent;
  color: var(--caramelo-claro);
  font-family: var(--body); font-size: 13px; letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.reel-tabs button:hover { border-color: var(--caramelo-claro); color: var(--crema); }
.reel-tabs button[aria-pressed="true"] { background: var(--crema); border-color: var(--crema); color: var(--vino); }
/* Con pocos videos la cinta no se mueve: queda centrada y se desliza con el dedo */
.reels-cinta.is-static { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.reels-cinta.is-static::-webkit-scrollbar { display: none; }
.reels-cinta.is-static { scroll-padding-inline: var(--gutter); }
.reels-cinta.is-static .reels { animation: none; margin: 0 auto; padding: 0 var(--gutter); }
.reels-cinta.is-static .reels > [aria-hidden="true"] { display: none; }
.reels-cinta.is-static .reel { scroll-snap-align: start; }
.menu-open .reels, .menu-open .marquee__track, .menu-open .hero__badge svg { animation-play-state: paused; }
@keyframes reels-desliza { to { translate: calc(-50% - var(--hueco) / 2) 0; } }
.reel { width: clamp(190px, 21vw, 260px); flex-shrink: 0; text-align: left; }
.reel__phone {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  padding: 7px;
  background: #1c0505;
  box-shadow: 0 0 0 1px rgba(202, 161, 131, .35), 0 24px 50px rgba(0, 0, 0, .35);
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform .35s;
}
.reel__phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; background: #1c0505; }
.reel:hover .reel__phone { transform: translateY(-6px); }
.reel__brand { font-family: var(--display); font-size: 24px; line-height: 1.1; color: var(--caramelo); margin-bottom: 4px; padding-left: 4px; }
.reel__type { font-size: 13px; color: var(--caramelo-claro); opacity: .8; margin: 0; padding-left: 4px; }

.reel__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(65, 1, 1, .55));
  cursor: pointer;
  border-radius: 28px;
}
.reel__play span {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(247, 239, 232, .92);
  display: grid; place-items: center;
  transition: transform .25s, background .25s;
}
.reel__play span::before {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--vino);
}
.reel__play:hover span { transform: scale(1.08); background: var(--caramelo); }

/* Pilares */
.row-head--dark .row-head__kicker { color: var(--borgona); }
.row-head--dark .row-head__title { color: var(--tinta); }
.row-head--dark .row-head__title span { color: var(--caramelo); }

.pillars {
  padding: 0;
  /* mismo resplandor de seda que la portada */
  background:
    linear-gradient(118deg, transparent 28%, rgba(255, 255, 255, .5) 40%, transparent 52%),
    linear-gradient(140deg, transparent 52%, rgba(255, 255, 255, .35) 62%, transparent 72%),
    radial-gradient(80% 70% at 8% 100%, rgba(202, 161, 131, .28), transparent 60%),
    linear-gradient(160deg, #f5ebe1, #ecdfd2);
}
/* Pilares: tres tarjetas con foto en arco que llevan a los videos o las fotos */
.pillar-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
  padding-top: 0;
}
.pillar__link { display: block; color: inherit; text-decoration: none; }
.pillar__photo {
  position: relative; margin: 0 0 22px;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--arena);
  box-shadow: 0 18px 40px rgba(65, 1, 1, .12);
}
.pillar__photo video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.pillar__link:hover .pillar__photo video, .pillar__link:focus-visible .pillar__photo video { transform: scale(1.05); }
.pillar__cta {
  position: absolute; left: 50%; bottom: 18px;
  translate: -50% 8px; opacity: 0;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(247, 239, 232, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--vino);
  transition: opacity .35s ease, translate .35s ease;
}
.pillar__link:hover .pillar__cta, .pillar__link:focus-visible .pillar__cta { opacity: 1; translate: -50% 0; }
@media (hover: none) { .pillar__cta { opacity: 1; translate: -50% 0; } }
.pillar__num { display: block; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--caramelo-texto); margin-bottom: 10px; }
.pillar h3 {
  font-family: var(--body);
  font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  line-height: 1.4;
  color: var(--tinta);
  margin-bottom: 8px;
}
.pillar p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--texto); max-width: 32ch; }
.pillars__quote {
  max-width: 30ch;
  margin: clamp(44px, 5vw, 70px) auto 0;
  padding-bottom: clamp(56px, 6vw, 90px);
  text-align: center;
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.25;
  color: var(--vino);
}
.pillars__quote span { display: block; margin-bottom: 12px; font-size: .75em; color: var(--caramelo-oscuro); }

/* Servicios: dos columnas con divisor central */
.services {
  background:
    linear-gradient(118deg, transparent 30%, rgba(255, 255, 255, .4) 42%, transparent 54%),
    linear-gradient(140deg, transparent 55%, rgba(255, 255, 255, .28) 65%, transparent 75%),
    radial-gradient(70% 60% at 100% 100%, rgba(202, 161, 131, .16), transparent 60%),
    var(--crema);
}
.about { background: var(--crema); }
/* Fotos UGC: texto a la izquierda y fotos verticales por categoría */
.photos { background: var(--crema); }
.photos__grid { display: grid; grid-template-columns: minmax(220px, .85fr) 3fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.photos__title { font-family: var(--display); font-size: clamp(52px, 5.4vw, 80px); line-height: .95; color: var(--vino); margin-bottom: 18px; }
.photos__title span { display: block; font-family: "Allura", cursive; font-size: .62em; color: var(--caramelo-oscuro); margin: -.05em 0 0 .6em; }
.photos__sub { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--caramelo-texto); margin-bottom: 16px; }
.photos__lead { font-size: 15px; line-height: 1.7; color: var(--texto); max-width: 28ch; margin: 0; }
/* Mosaico: tres columnas con fotos altas y bajas intercaladas */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, clamp(84px, 8.6vw, 122px));
  grid-template-areas: "a b c" "a b c" "a e c" "d e f" "d e f";
  gap: clamp(10px, 1.3vw, 16px);
}
.photo-grid__a { grid-area: a; } .photo-grid__b { grid-area: b; } .photo-grid__c { grid-area: c; }
.photo-grid__d { grid-area: d; } .photo-grid__e { grid-area: e; } .photo-grid__f { grid-area: f; }
.photo-grid li { position: relative; overflow: hidden; border-radius: 6px; background: var(--arena); box-shadow: 0 14px 30px rgba(65, 1, 1, .1); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.photo-grid li:hover img { transform: scale(1.04); }
.photos__cat {
  position: absolute; left: 10px; bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(247, 239, 232, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 500; letter-spacing: .06em;
  color: var(--vino);
}

.svc-label {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--body);
  font-size: 13px; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--tinta);
  margin-bottom: 30px;
}
.svc-label::after { content: ""; flex: 1; height: 1px; background: rgba(169, 119, 79, .35); }
@media (min-width: 761px) { .svc-label::after { display: none; } }
.svc-dots { display: none; }
.reel-dots { display: none; }
.svc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-bottom: clamp(48px, 6vw, 72px); }
.svc { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.svc__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: #efe2d6;
  color: var(--vino);
}
.svc__icon svg { width: 28px; height: 28px; }
.svc h3 { font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--tinta); margin: 4px 0 6px; }
.svc p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--texto); max-width: 32ch; }

/* Cómo trabajamos: línea de tiempo */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.timeline li { position: relative; }
.timeline__num {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(169, 119, 79, .6);
  box-shadow: inset 0 0 0 4px var(--crema), inset 0 0 0 5px rgba(169, 119, 79, .2);
  background: var(--crema);
  font-family: var(--display);
  font-size: 22px;
  color: var(--tinta);
  margin-bottom: 22px;
  position: relative; z-index: 1;
  transition: background .6s ease, color .6s ease, border-color .6s ease, box-shadow .6s ease;
}
.timeline h3 { display: flex; align-items: center; gap: 9px; font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta); margin: 1.33em 0 8px; }
.timeline p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--texto); max-width: 28ch; }
.services__note { text-align: center; font-size: 14px; color: var(--texto); margin-top: clamp(44px, 5vw, 64px); max-width: 760px; }
.services__note strong { font-weight: 500; color: var(--borgona); letter-spacing: .04em; }

/* Pie: franja vino (frase + llamado), franja crema (marca, datos, redes) y línea legal */
.contact {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(105, 11, 35, .7), transparent 60%),
    var(--vino);
  color: var(--crema);
}
.contact__grid {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1080px;
  padding-top: clamp(40px, 4vw, 56px);
  padding-bottom: clamp(40px, 4vw, 56px);
}
.contact__quote { position: relative; margin: 0; padding-left: clamp(64px, 6vw, 84px); }
.contact__q { position: absolute; left: 0; top: -.12em; font-family: Georgia, "Times New Roman", serif; font-size: clamp(72px, 7vw, 96px); line-height: 1; color: var(--caramelo); }
.contact__quote blockquote { margin: 0; }
.contact__quote p { font-family: var(--display); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; color: var(--crema); margin: 0 0 18px; max-width: 24ch; }
.contact__quote figcaption { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--caramelo-claro); }
.contact__quote figcaption::before { content: "— "; }
/* Ícono al centro, sobre una línea vertical */
.contact__icon { position: relative; align-self: stretch; display: grid; place-items: center; }
.contact__icon::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(202, 161, 131, .35); }
.contact__icon svg {
  position: relative;
  width: 76px; height: 76px;
  padding: 25px;
  border: 1px solid rgba(202, 161, 131, .7); border-radius: 50%;
  background: var(--vino);
  color: var(--caramelo);
  stroke-width: 1.2;
}
.contact__title {
  font-family: var(--display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--crema);
  margin: 0 0 12px;
  max-width: 20ch;
}
.contact__cta p { font-size: 15px; line-height: 1.7; color: var(--caramelo-claro); margin: 0 0 22px; max-width: 40ch; }
.contact__btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 15px 22px 15px 26px;
  border-radius: 2px;
  background: var(--crema);
  color: var(--vino);
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}
.contact__btn svg { width: 20px; height: 20px; transition: transform .2s; }
.contact__btn:hover { background: var(--caramelo-claro); }
.contact__btn:hover svg { transform: translateX(5px); }

/* Franja crema */
.contact__band { background: var(--crema); color: var(--tinta); }
.contact__band-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding-top: 30px; padding-bottom: 30px;
}
.contact__brand { display: flex; align-items: center; gap: 24px; }
.contact__brand img { width: 62px; height: auto; flex-shrink: 0; padding-right: 24px; box-sizing: content-box; border-right: 1px solid rgba(169, 119, 79, .45); }
.contact__brand p { margin: 0; max-width: 44ch; font-size: 12px; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase; color: var(--texto); }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact__list li, .contact__list a { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--texto); text-decoration: none; }
.contact__list a:hover { color: var(--borgona); }
.contact__list svg { width: 18px; height: 18px; color: var(--vino); flex-shrink: 0; }
.contact__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.contact__social a {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(65, 1, 1, .45); border-radius: 50%;
  color: var(--vino);
  transition: background .2s, color .2s;
}
.contact__social a:hover { background: var(--vino); color: var(--crema); }
.contact__social svg { width: 19px; height: 19px; }

.contact__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 20px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--caramelo-claro); }
.contact__legal p { margin: 0; opacity: .8; }
.contact__legal a { color: var(--caramelo); }



/* Modal de YouTube */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 2, 2, .88); }
.modal__box { position: relative; width: min(420px, 100%); }
.modal__frame { aspect-ratio: 9 / 16; max-height: 86svh; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--caramelo);
  background: transparent;
  color: var(--caramelo);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Grupos que aparecen uno tras otro */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.no-js .stagger > * { opacity: 1; transform: none; }

/* Fotos: aparecen con un fundido y se asientan con un leve cambio de tamaño */
.about__photo img { scale: 1.06; transition: scale 1.4s cubic-bezier(.22, 1, .36, 1); }
.about__photo.is-in img { scale: 1; }
.photo-grid img { scale: 1.08; transition: transform .8s cubic-bezier(.22, 1, .36, 1), scale 1.4s cubic-bezier(.22, 1, .36, 1); }
.photo-grid.is-in img { scale: 1; }
.no-js .about__photo img, .no-js .photo-grid img { scale: 1; }


/* Cómo trabajamos: hilo dorado que avanza con el scroll (main.js calcula --p y la posición de la línea) */
.process { position: relative; }
.process__track {
  position: absolute;
  left: var(--tx, 28px); top: var(--ty, 28px);
  width: var(--tw, 0); height: 1px;
  background: rgba(169, 119, 79, .28);
  pointer-events: none;
}
.process__fill {
  position: absolute; left: 0; right: 0; top: -.5px; height: 2px;
  background: linear-gradient(90deg, var(--caramelo), var(--borgona));
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.process__spark {
  position: absolute; left: calc(var(--p, 0) * 100%); top: 50%;
  translate: -50% -52%;
  font-size: 15px; line-height: 1; color: var(--caramelo-oscuro);
  text-shadow: 0 0 10px rgba(202, 161, 131, .9), 0 0 22px rgba(202, 161, 131, .6);
  opacity: var(--spark, 0);
  transition: opacity .3s;
}
.step .timeline__num::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--caramelo-oscuro);
  opacity: 0; pointer-events: none;
}
.step.is-lit .timeline__num {
  background: var(--vino); color: var(--crema); border-color: var(--vino);
  box-shadow: inset 0 0 0 4px var(--vino), inset 0 0 0 5px rgba(247, 239, 232, .35), 0 10px 24px rgba(65, 1, 1, .18);
}
.step.is-lit .timeline__num::after { animation: pulso 1.1s ease-out; }
@keyframes pulso { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.step h3, .step p { opacity: .3; translate: 0 6px; transition: opacity .6s ease, translate .6s ease; }
.step p { transition-delay: .1s; }
.step.is-lit h3, .step.is-lit p { opacity: 1; translate: 0 0; }
.step__icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--caramelo-oscuro); }
.step__icon * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease .2s; }
.step.is-lit .step__icon * { stroke-dashoffset: 0; }
.no-js .step h3, .no-js .step p { opacity: 1; translate: 0 0; }
.no-js .step__icon * { stroke-dashoffset: 0; }

/* Tablet */
@media (max-width: 960px) {
}

/* Sobre mí en tablet y celular */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1.2fr .8fr; }
  .about__photo { min-height: 340px; }
  .about__tools { grid-column: 1 / -1; order: 3; border-right: 0; padding-right: 0; border-top: 1px solid rgba(169, 119, 79, .35); padding-top: 36px; }
}
@media (max-width: 760px) {
  .hero__name { font-size: clamp(52px, 15vw, 72px); }
  .hero__social { justify-content: center; gap: 10px 16px; }
  .hero__social a { font-size: 12px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { order: -1; width: 70%; max-width: 300px; min-height: 0; aspect-ratio: 3 / 4; margin: 0 auto; }
  .tools { gap: 22px 8px; }
}

/* Contacto en tablet y celular */
@media (max-width: 960px) {
  .contact__band-grid { grid-template-columns: 1fr 1fr; }
  .contact__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .contact__grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .contact__quote { padding-left: 0; }
  .contact__q { position: static; display: block; font-size: 64px; line-height: .5; height: 34px; }
  .contact__quote p { margin-left: auto; margin-right: auto; }
  .contact__icon { order: 1; height: 72px; }
  .contact__icon::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
  .contact__icon svg { width: 72px; height: 72px; padding: 23px; }
  .contact__cta { order: 2; }
  .contact__title, .contact__cta p { margin-left: auto; margin-right: auto; }
  .contact__band-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .contact__brand { flex-direction: column; gap: 14px; }
  .contact__brand img { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgba(169, 119, 79, .45); width: 52px; }
  .contact__list { justify-items: center; }
}

/* Celular */
@media (max-width: 760px) {
  .marquee__list img { height: calc(var(--h, 44px) * .6); }

  .hero { min-height: auto; display: flex; flex-direction: column; padding-top: 86px; }
  .hero__top { position: static; padding: 0 var(--gutter); font-size: 10px; letter-spacing: .16em; }
  .hero__word { position: static; font-size: var(--ws, 19vw); margin-top: 14px; }
  .hero__photo { position: relative; top: auto; bottom: auto; right: auto; width: 80%; max-width: 360px; margin: -9vw auto 0; }
  .hero__photo img { width: 100%; height: auto; max-width: none; max-height: 56svh; margin: 0 auto; }
  .hero__badge { width: 96px; right: 3vw; top: 30vw; bottom: auto; }
  .hero__text { padding: 30px var(--gutter) 52px; max-width: none; text-align: center; border-top: 1px solid rgba(105, 11, 35, .15); }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { padding: 13px 18px; font-size: 14px; }

  .reel { width: 56vw; }
  .reels-cinta { --fundido: 24px; margin: 0 calc(-1 * var(--gutter)); }
  .reel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; max-width: 300px; margin: 18px auto 0; }
  .reel-dots button { width: 8px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(227, 199, 177, .3); transition: width .3s, background .3s; }
  .reel-dots button.is-active { width: 20px; background: var(--caramelo); }
  .reels-cinta:not(.is-static) + .reel-dots { display: none; }
  .reel-tabs { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .reel-tabs::-webkit-scrollbar { display: none; }
  .reel-tabs button { flex-shrink: 0; padding: 8px 13px; font-size: 12.5px; letter-spacing: .02em; }

  .contact__legal { justify-content: center; text-align: center; letter-spacing: .04em; }
}

/* Menú lateral (se abre con el botón de tres líneas en el celular) */
.nav__menu, .drawer { display: none; }
.drawer {
  position: fixed; inset: 0;
  z-index: 80;
  visibility: hidden;
  transition: visibility 0s .4s;
  /* capa propia y estable: en Chrome de Android el menú fijo podía desaparecer un cuadro */
  transform: translateZ(0);
  will-change: transform;
}
.drawer.is-open { visibility: visible; transition: none; }
.drawer__fondo {
  position: absolute; inset: 0;
  background: rgba(43, 10, 10, .45);
  opacity: 0;
  transition: opacity .4s;
  touch-action: none;
}
.drawer.is-open .drawer__fondo { opacity: 1; }
.drawer__fondo { will-change: opacity; }
/* con el menú abierto se apagan los desenfoques de debajo (muy pesados en Android) */
.menu-open .nav::before, .menu-open .photos__cat, .menu-open .pillar__cta { -webkit-backdrop-filter: none; backdrop-filter: none; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(84vw, 340px);
  display: flex; flex-direction: column;
  padding: 18px 22px 26px;
  background: var(--crema);
  box-shadow: -18px 0 40px rgba(43, 10, 10, .22);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.65, 0, .25, 1);
  will-change: transform;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(105, 11, 35, .14); }
.drawer__head img { width: 38px; height: auto; }
.drawer__close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(65, 1, 1, .2); border-radius: 50%;
  background: transparent; color: var(--vino);
  cursor: pointer;
}
.drawer__close svg { width: 18px; height: 18px; }
.drawer__links { display: flex; flex-direction: column; margin-top: 6px; }
.drawer__links a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 2px;
  border-bottom: 1px solid rgba(105, 11, 35, .1);
  color: var(--vino);
  font-size: 16px;
  text-decoration: none;
}
.drawer__links a svg { width: 21px; height: 21px; color: var(--caramelo-oscuro); flex-shrink: 0; }
.drawer__links a:active { color: var(--borgona); }
.drawer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.drawer__social a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(169, 119, 79, .45); border-radius: 999px;
  color: var(--vino);
  font-size: 12.5px;
  text-decoration: none;
}
.drawer__social svg { width: 15px; height: 15px; color: var(--caramelo-oscuro); }

/* Menú en celular: logo, idioma, "Cotizar" y botón del menú lateral */
@media (max-width: 760px) {
  .nav { top: 10px; left: 12px; right: 12px; padding: 7px 7px 7px 16px; }
  .nav__logo { flex-shrink: 0; }
  .nav__logo img { width: 32px; }
  .nav__links { gap: 8px; }
  .nav__links > a:not(.btn) { display: none; }
  .nav .btn--small { padding: 10px 16px; font-size: 13px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav__menu {
    width: 40px; height: 40px;
    display: grid; place-content: center; gap: 4px;
    border: 0; border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  .nav__menu span { display: block; width: 19px; height: 1.6px; border-radius: 2px; background: var(--vino); }
  .drawer { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer__fondo, .drawer__panel { transition: none; }
}

/* Servicios en celular: cada lista es un carrusel que se desliza con el dedo */
@media (max-width: 760px) {
  .svc-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 10px;
    scroll-padding: 0 var(--gutter);
  }
  .svc-list::-webkit-scrollbar { display: none; }
  .svc {
    flex: 0 0 80%;
    scroll-snap-align: start;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px;
    background: #fbf6f1;
    border: 1px solid rgba(169, 119, 79, .22);
    border-radius: 18px;
  }
  .svc h3 { margin-top: 0; }
  .svc-row { margin-bottom: 0; }
  .svc-row + .svc-dots { margin-bottom: 44px; }
  .timeline { grid-template-columns: 1fr; gap: 26px; position: relative; }
  .process__track { width: 1px; height: var(--th, 0); }
  .process__fill { left: -.5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--caramelo), var(--borgona)); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .process__spark { left: 50%; top: calc(var(--p, 0) * 100%); translate: -48% -50%; }
  .timeline li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-items: center; }
  .timeline__num { position: relative; z-index: 1; grid-row: 1 / span 2; align-self: center; margin: 0; }
  .timeline h3 { grid-column: 2; align-self: end; margin: 0 0 6px; }
  .timeline p { grid-column: 2; align-self: start; margin: 0; }
  .svc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .svc-dots button { width: 18px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(169, 119, 79, .3); cursor: pointer; transition: width .3s, background .3s; }
  .svc-dots button.is-active { width: 34px; background: var(--caramelo-oscuro); }
}

/* Pilares en celular: carrusel con barritas */
@media (max-width: 760px) {
  .pillar-list {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding: 24px var(--gutter) 10px;
    scroll-padding: 0 var(--gutter);
  }
  .pillar-list::-webkit-scrollbar { display: none; }
  .pillar { flex: 0 0 78%; scroll-snap-align: start; }
  .pillars__quote { margin-top: 36px; font-size: 23px; }
}

/* Fotos UGC en tablet y celular: mosaico de dos columnas */
@media (max-width: 960px) {
  .photos__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 31vw);
    grid-template-areas: "a b" "a b" "c d" "c e" "f e" "f e";
    gap: 10px;
  }
  .photos__cat { left: 8px; bottom: 8px; padding: 4px 9px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation-duration: 120s; }
  .hero__badge svg { animation: none; }
  .reels { animation: none; }
  /* sin movimiento automático: la cinta se desliza a mano y sin las copias */
  .reels-cinta { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .reels > [aria-hidden="true"] { display: none; }
  .reel { scroll-snap-align: start; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stagger > * { opacity: 1; transform: none; transition: none; }
  .about__photo img, .photo-grid img { scale: 1; transition: none; }
  .pillar__photo video, .pillar__cta { transition: none; }
  .step h3, .step p, .step__icon *, .timeline__num { transition: none; }
  .step .timeline__num::after { animation: none; }
  .process__spark { display: none; }
}
