/* =============================================================
   HERRANDO VISUALS — Fotógrafo y videógrafo en Cataluña
   Brand: navy #002b5d on white · Inter (body) + IBM Plex Sans (headings)
   Built on the Blau Weddings technical base, Herrando's own visual layer.
   ============================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --navy:        #002b5d;   /* brand + primary text */
  --navy-deep:   #001a3d;   /* footer / hero overlay */
  --navy-700:    #0b3f7a;   /* hover */
  --ink:         #14233b;   /* body text, slightly softened navy */
  --muted:       #5d6b80;   /* secondary text */
  --line:        #e2e8f0;   /* hairlines */
  --bg:          #ffffff;
  --bg-alt:      #f4f7fb;   /* tinted section background */
  --white:       #ffffff;
  --accent:      #c9a24b;   /* subtle warm accent (eyebrows / underlines) */

  --ff-head: 'IBM Plex Sans', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 76px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(0, 43, 93, 0.45);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

/* ---------- Layout utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-deep); color: #cdd9ea; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--ff-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }
.h-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--ff-head); font-weight: 600; font-size: 0.97rem;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  border: 1.5px solid var(--navy); background: var(--navy); color: #fff;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--lg { padding: 1rem 2.1rem; font-size: 1.02rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.site-header[data-scrolled="true"] { border-color: var(--line); }
.site-header[data-hidden="true"] { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--ff-head); font-size: 0.95rem; font-weight: 500; color: var(--navy);
  position: relative; padding-block: 0.4rem;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }

/* dropdown (Portfolio) */
.nav__item--has-menu { position: relative; }
.nav__submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem;
  min-width: 180px; box-shadow: var(--shadow); list-style: none; margin: 0.6rem 0 0;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s;
}
.nav__item--has-menu:hover .nav__submenu,
.nav__item--has-menu:focus-within .nav__submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__submenu a { display: block; padding: 0.55rem 0.85rem; border-radius: 8px; font-size: 0.92rem; }
.nav__submenu a:hover { background: var(--bg-alt); }
.nav__submenu a::after { display: none; }

.lang { display: flex; gap: 0.3rem; align-items: center; font-family: var(--ff-head); font-size: 0.82rem; font-weight: 600; }
.lang a { color: var(--muted); padding: 0.2rem 0.35rem; border-radius: 6px; letter-spacing: 0.04em; }
.lang a[aria-current="true"] { color: var(--navy); background: var(--bg-alt); }
.lang span { color: var(--line); }

.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: var(--navy); }
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 20, 46, 0.25) 0%, rgba(0, 20, 46, 0.15) 40%, rgba(0, 20, 46, 0.82) 100%);
}
.hero__inner { padding-bottom: clamp(3rem, 8vw, 6rem); padding-top: calc(var(--header-h) + 2rem); max-width: 50rem; }
.hero__eyebrow { color: rgba(255, 255, 255, 0.85); }
.hero__eyebrow::before { background: rgba(255, 255, 255, 0.7); }
.hero h1 {
  color: #fff; font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1rem; text-wrap: balance;
}
.hero p { font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(255, 255, 255, 0.92); max-width: 34rem; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.3rem); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon { font-size: 1.8rem; line-height: 1; margin-bottom: 1rem; }
.service h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Portfolio teaser ---------- */
.tease__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 2vw, 1.4rem); }
.tease {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; isolation: isolate;
}
.tease picture { display: block; width: 100%; height: 100%; }
.tease img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s var(--ease); }
.tease:hover img { transform: scale(1.05); }
.tease::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 20, 46, 0.78)); }
.tease__label {
  position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 2; color: #fff;
  font-family: var(--ff-head); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 0.5rem;
}
.tease__label svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.tease:hover .tease__label svg { transform: translateX(5px); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about__photo picture { display: block; width: 100%; height: 100%; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__body p { color: var(--muted); margin: 0 0 1.1rem; }
.about__body p:first-of-type { color: var(--ink); font-size: 1.15rem; }
.about__sign { font-family: var(--ff-head); font-weight: 600; color: var(--navy); margin-top: 1.4rem; }

/* ---------- Testimonials ---------- */
.tst__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.tst {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column;
}
.tst__stars { color: var(--accent); letter-spacing: 0.15em; margin-bottom: 0.9rem; font-size: 0.95rem; }
.tst__text { margin: 0 0 1.4rem; color: var(--ink); font-size: 1rem; }
.tst__who { margin-top: auto; }
.tst__name { font-family: var(--ff-head); font-weight: 600; color: var(--navy); }
.tst__role { font-size: 0.88rem; color: var(--muted); }

/* ---------- Contact CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; margin-inline: auto; }
.cta p { color: #cdd9ea; max-width: 44rem; margin: 1rem auto 2rem; }
.cta__links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; color: #fff;
  font-family: var(--ff-head); font-weight: 500; font-size: 0.95rem; transition: background 0.25s, border-color 0.25s;
}
.contact-chip:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }
.contact-chip svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb2cc; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand img { height: 34px; margin-bottom: 1rem; }
.footer__brand p { max-width: 28ch; font-size: 0.95rem; }
.footer__col h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__col a { color: #9fb2cc; font-size: 0.95rem; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer__bottom a:hover { color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%) translateY(2rem); z-index: 200;
  width: min(640px, calc(100vw - 2rem)); background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 43, 93, 0.4); padding: 1.3rem 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, transform 0.4s var(--ease);
}
.cookie[data-state="open"] { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cookie p { margin: 0 0 1rem; font-size: 0.92rem; color: var(--muted); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie .btn { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(0, 12, 28, 0.94); padding: 4vmin;
  opacity: 0; visibility: hidden; transition: opacity 0.35s;
}
.lightbox[data-state="open"] { opacity: 1; visibility: visible; }
.lightbox__frame { width: min(1100px, 92vw); max-height: 86vh; }
.lightbox__frame img { width: 100%; height: 100%; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox__frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, 0.12); border: 0; color: #fff;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__close { top: 4vmin; right: 4vmin; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 3vmin; }
.lightbox__nav--next { right: 3vmin; }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }

/* ---------- Gallery grid (gallery pages) ---------- */
.gallery-grid { columns: 3 320px; column-gap: clamp(0.7rem, 1.5vw, 1.1rem); }
.gallery-grid .gallery__item {
  break-inside: avoid; margin-bottom: clamp(0.7rem, 1.5vw, 1.1rem); width: 100%;
  border: 0; padding: 0; background: none; border-radius: 10px; overflow: hidden; position: relative; display: block;
}
.gallery__item img { width: 100%; height: auto; transition: transform 0.5s var(--ease), filter 0.3s; }
.gallery__item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery__item--video::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 20, 46, 0.25);
}
.play-icon {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; z-index: 2;
  background: rgba(255, 255, 255, 0.92); border-radius: 50%; display: grid; place-items: center; color: var(--navy);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.gallery__item--video:hover .play-icon { transform: scale(1.1); background: #fff; }
.play-icon svg { width: 24px; height: 24px; margin-left: 3px; }

/* ---------- Carousel (home) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: clamp(0.7rem, 1.5vw, 1.1rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.5rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 auto; height: clamp(300px, 44vh, 440px); scroll-snap-align: start;
  border: 0; padding: 0; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #e7edf5; cursor: pointer;
}
.carousel__item picture { display: block; height: 100%; width: auto; }
.carousel__item img { height: 100%; width: auto; display: block; transition: transform 0.5s var(--ease); }
.carousel__item:hover img { transform: scale(1.04); }
.carousel__btns { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.3rem; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy); display: grid; place-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.carousel__btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.carousel__btn svg { width: 22px; height: 22px; }

/* ---------- Sub-page hero / video page ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero .lead { margin-top: 1rem; }

.video-cat { margin-top: clamp(2.5rem, 5vw, 4rem); }
.video-cat__title { font-size: clamp(1.35rem, 2.5vw, 1.85rem); padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.video-block h3 { font-size: 1.2rem; margin: 1rem 0 0.4rem; }
.video-block p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.video-card {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #e7edf5;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.video-card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 20, 46, 0.22); transition: background 0.3s; }
.video-card:hover::after { background: rgba(0, 20, 46, 0.06); }
.video-card:hover img { transform: scale(1.04); }
.reel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 2vw, 1.4rem); }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } .reel-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Blau band ---------- */
.blau-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); }
.blau-band > div { max-width: 42rem; }
.blau-band .eyebrow { color: var(--accent); }

/* ---------- Contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--ff-head); font-weight: 500; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%; transition: border-color 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { resize: vertical; }
.contact-aside { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); }
.contact-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list a { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--navy); }
.contact-list svg { width: 20px; height: 20px; color: var(--navy); flex: none; }

/* ---------- Legal ---------- */
.legal { max-width: 46rem; }
.legal p { margin: 0 0 1.1rem; color: var(--ink); }
.legal a { color: var(--navy); text-decoration: underline; }

@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; } .blau-band { flex-direction: column; align-items: flex-start; } }

/* ---------- Proceso (how I work) ---------- */
.proceso__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.proceso__num { font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--navy); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; }
.proceso__step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.proceso__step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { font-family: var(--ff-head); font-weight: 600; font-size: 1.08rem; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--accent); transition: transform 0.2s; line-height: 1; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.9rem 0 0; color: var(--muted); }

@media (max-width: 760px) { .proceso__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .proceso__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.7rem 1.2rem; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links, .nav .lang { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .services__grid, .tease__grid, .tst__grid { grid-template-columns: 1fr; }
  .tease { aspect-ratio: 16 / 10; }

  /* Mobile nav overlay */
  .nav__panel {
    position: fixed; inset: 0; z-index: 90; background: #fff; padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    display: flex; flex-direction: column; gap: 0.4rem;
    transform: translateX(100%); transition: transform 0.4s var(--ease); visibility: hidden;
  }
  .nav__panel[data-open="true"] { transform: translateX(0); visibility: visible; }
  .nav__panel a { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 500; color: var(--navy); padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .nav__panel .nav__panel-sub a { font-size: 1.05rem; padding-left: 1rem; color: var(--muted); }
  .nav__panel .lang { display: flex; margin-top: 1.5rem; font-size: 1rem; }
}

@media (min-width: 861px) { .nav__panel { display: none; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: 88vh; }
  .gallery-grid { columns: 2 160px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
