/* =========================================================
   Abora Tattoo — estilos
   Replicado del diseño de Figma "Home 4" (frame de 1440px)
   ========================================================= */

/* La web ya es oscura: evita que el modo oscuro del navegador (Chrome, Samsung
   Internet…) invierta los colores, p. ej. las rayas blancas del menú. */
:root { color-scheme: dark; }

:root {
  /* Colores */
  --color-bg: #000000;
  --color-overlay: rgba(1, 1, 1, 0.7);
  --color-accent: #fdc519;
  --color-text: #ffffff;
  --color-muted: #d8cbcb;
  --color-dark: #0e0e0e;
  --color-footer: #040404;
  --color-input-border: #d9d9d9;
  --color-placeholder: #6c6c6c;

  /* Tipografías */
  --font-serif: 'Roboto Serif', Georgia, serif;
  --font-sans: 'Roboto', system-ui, sans-serif;
  --font-flex: 'Roboto Flex', 'Roboto', system-ui, sans-serif;
  --font-input: 'Lato', system-ui, sans-serif;
  --font-footer: 'Inter', system-ui, sans-serif;

  /* Layout */
  --frame: 1440px;
  --container: 1116px;
  --section-gap: 140px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);   /* fondo negro sólido */
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }  /* width/height del HTML solo reservan el espacio (evita saltos al cargar) */
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Utilidades de texto ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 32px;
  color: var(--color-muted);
}

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 56px;
  line-height: normal;
  color: var(--color-text);
}

/* ---------- Botón ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 249px;
  padding: 12px 8px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-flex);
  font-weight: 700;
  font-size: 18px;
  text-transform: capitalize;
  border: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #ffd54a; transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding-top: 32px;       /* 64 en Figma, subido 32px */
}

/* Menú en 3 columnas: [enlaces izquierda] [logo] [enlaces derecha].
   Las dos columnas laterales miden lo mismo, así el logo queda siempre
   centrado aunque los textos cambien de largo con el idioma. */
.nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 38px;
}
.nav > .nav__group:first-of-type { justify-self: end; }
.nav > .nav__group:last-of-type { justify-self: start; }

.nav__group {
  display: flex;
  align-items: center;
  gap: 49px;
}

.nav__group a {
  font-family: var(--font-flex);
  font-weight: 500;
  font-size: 18px;
  text-transform: capitalize;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__group a:hover { color: var(--color-accent); }

.nav__logo img { width: 100px; height: 100px; object-fit: cover; }

/* ---------- Selector de idioma ES / EN ---------- */
.lang-switch {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-flex);
  font-weight: 500;
  font-size: 16px;
  color: rgba(255, 255, 255, .5);
}
.lang-switch__btn {
  background: none;
  border: none;
  padding: 6px 4px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color .2s ease;
}
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn[aria-current="true"] { color: var(--color-accent); }
.lang-switch__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* En español los textos van en mayúscula inicial normal (no "Cada Palabra") */
html[lang="es"] .nav__group a,
html[lang="es"] .mobile-menu a,
html[lang="es"] .btn { text-transform: none; }

.nav__toggle { display: none; }
.mobile-menu { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  max-width: var(--frame);
  height: 990px;           /* bloque del hero subido 80px respecto a Figma (1070) */
  margin: 0 auto;
}

.hero__title-wrap {
  position: absolute;
  left: 6.4583%;           /* 93 / 1440 */
  top: 203px;              /* 283 en Figma, subido 80px */
  width: 430px;
  height: 430px;
}

.hero__circle {
  width: 430px;
  height: 430px;
}

/* Sol radiante (Abora, dios del sol guanche): degradado + halo de luz sutil
   pintado encima del círculo amarillo y por debajo del título */
.hero__title-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      #ffe27a 0%,           /* núcleo más claro */
      #fdd03a 35%,
      #fdc519 60%,          /* amarillo de la marca */
      #f7ad16 88%,
      #f09a10 100%);        /* borde más cálido */
  box-shadow:
    0 0 40px 6px rgba(253, 197, 25, .35),
    0 0 110px 30px rgba(245, 150, 20, .18),
    0 0 220px 80px rgba(245, 130, 20, .07);
  animation: sun-glow 7s ease-in-out infinite;
}

@keyframes sun-glow {
  0%, 100% {
    box-shadow:
      0 0 40px 6px rgba(253, 197, 25, .35),
      0 0 110px 30px rgba(245, 150, 20, .18),
      0 0 220px 80px rgba(245, 130, 20, .07);
  }
  50% {
    box-shadow:
      0 0 55px 10px rgba(253, 197, 25, .45),
      0 0 140px 40px rgba(245, 150, 20, .22),
      0 0 260px 100px rgba(245, 130, 20, .09);
  }
}

.hero__title {
  position: absolute;
  top: 148px;              /* 431 - 283 */
  left: 162px;             /* centro en x=514.5 → 514.5 - 93 - 519/2 */
  width: 519px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 120px;
  line-height: normal;
  text-align: center;
  color: var(--color-text);
}

/* Título del hero: marca + subtítulo con la ubicación (SEO local) */
.hero__brand { display: block; }
.hero__subtitle {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--color-muted);
}

.hero__statue {
  aspect-ratio: 489 / 736;
  pointer-events: none;
  position: absolute;
  left: 59.5833%;          /* 858 / 1440 */
  top: 124px;              /* 204 en Figma, subido 80px */
  width: 489px;
  height: 736px;
  object-fit: contain;   /* el vídeo (9:16) se ve entero, sin recortar la estatua */
  /* Tamaño de la estatua: sube o baja este valor (1 = tamaño del diseño) */
  transform: scale(var(--statue-scale, 1.2));
  transform-origin: 50% 0;  /* crece hacia abajo y hacia los lados, sin tapar el menú */
}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
  padding-bottom: calc(var(--section-gap) + 60px);
}

/* ---------- Valores ---------- */
.values {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 258px;
}

.value {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.value img { height: auto; margin-bottom: 24px; }

.value__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.value__text {
  font-weight: 300;
  font-size: 16px;
  color: var(--color-text);
}

/* ---------- Cabecera de sección ---------- */
.section-head {
  width: 727px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.section-head__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  color: var(--color-text);
}

.section-head__text {
  font-weight: 400;
  font-size: 16px;
  color: var(--color-muted);
}
.section-head__text--light { font-weight: 300; line-height: 32px; }

/* ---------- Equipo ---------- */
.team {
  width: var(--container);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.team__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);   /* fila de arriba: 2 tarjetas (3+3) · fila de abajo: 3 tarjetas (2+2+2) */
}
.team__grid > .team-card { grid-column: span 3; }
.team__grid > .team-card--third {
  grid-column: span 2;
  aspect-ratio: 372 / 465;                  /* misma altura que las tarjetas de arriba */
}
/* ---------- Tarjetas del equipo con flip ---------- */
.team-card {
  aspect-ratio: 558 / 465;
  perspective: 1600px;
  cursor: pointer;
  outline: none;
}

.team-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

/* Gira al pasar el ratón (solo con ratón), con el teclado o al tocar */
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-card__inner { transform: rotateY(180deg); }
}
.team-card.is-flipped .team-card__inner { transform: rotateY(180deg); }
.team-card:focus-visible { box-shadow: 0 0 0 2px var(--color-accent); }

.team-card__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}

.team-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__back {
  transform: rotateY(180deg);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  text-align: center;
}

.team-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-card__info {
  width: 313px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.team-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-stretch: 75%;               /* Roboto Condensed */
  font-variation-settings: "wdth" 75;
}

.team-card__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #0c0b0b;
}

.team-card__style {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: #635e5e;   /* gris con contraste suficiente sobre blanco (≥ 4.5) */
}

.team-card__bio {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: #0c0b0b;
}

/* ---------- Galería ---------- */
.gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.gallery__grid {
  width: 100%;
  max-width: 1436px;       /* 4×258 + 308 + 4×24 */
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.gallery__col {
  flex: 258 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gallery__col--gap25 { gap: 25px; }
.gallery__col--wide { flex: 308 1 0; }

.gallery__col img {
  width: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}
.gallery__col img.is-mirrored { transform: scaleX(-1); }
.gallery__col img:hover { filter: brightness(1.1); }

/* ---------- Historia ---------- */
.story {
  display: flex;
  align-items: flex-start;
  gap: 165px;
  max-width: 100%;
}

.story__text {
  width: 502px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story__text .eyebrow,
.story__text .display { width: 236px; }
.story__text .display { margin-top: -12px; } /* gap de 4px entre "Our Story" y "Abora" */

.story__body {
  font-weight: 400;
  font-size: 16px;
  color: var(--color-muted);
}

.story__img {
  width: 449px;
  height: 533px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: 46.15% 50%;  /* recorte de la máscara de Figma */
}

/* ---------- Contacto / cita ---------- */
.contact {
  position: relative;
  width: 100%;
  max-width: var(--frame);
  min-height: 618px;
  padding: 40px 0 30px;
  isolation: isolate;
  background:
    linear-gradient(rgba(12, 11, 11, 0.8), rgba(12, 11, 11, 0.8)),
    url('../assets/img/contact-bg.jpg') center 51.5% / cover no-repeat;
}

.contact__inner {
  display: flex;
  align-items: flex-start;
  gap: 226px;
  padding-left: 102px;
}

.contact__intro {
  width: 446px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
}

.contact__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
}

.form {
  width: 504px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.form__fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__row {
  display: flex;
  gap: 24px;
}
.form__row .form__field { width: 240px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }

.field {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  font-family: var(--font-input);
  font-size: 16px;
  line-height: 24px;
  color: #1d1b20;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: var(--color-placeholder); }
.field:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(253, 197, 25, .35); }
.field.is-invalid { border-color: #ff6b6b; box-shadow: 0 0 0 1px #ff6b6b; }
.field.is-invalid:focus { box-shadow: 0 0 0 3px rgba(255, 107, 107, .35); }
.field-error {
  font-size: 14px;
  line-height: 1.3;
  color: #ff8a8a;            /* rojo claro: legible sobre fondo oscuro */
}
.field-error::before { content: "⚠ "; }
.field-error[hidden] { display: none; }

.field--select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: #fff url('../assets/icons/arrow-down.svg') no-repeat right 16px center / 24px 24px;
  cursor: pointer;
  text-overflow: ellipsis;
}
.field--select:invalid,
.field--select.is-empty { color: var(--color-placeholder); }
.field--select option { color: #1d1b20; }

.field--area {
  height: 149px;
  resize: vertical;
}

.form__status {
  align-self: stretch;
  min-height: 0;
  font-size: 14px;
  color: var(--color-accent);
}
.form__status:empty { display: none; }

/* ---------- Visítanos ---------- */
.visit {
  display: flex;
  align-items: center;
  gap: 83px;
  max-width: 100%;
}

.visit__info {
  width: 548px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.visit__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.visit__head .display { width: 493px; max-width: 100%; margin-top: -8px; } /* gap 4px tras "Where we are?" */

.visit__text {
  font-weight: 400;
  font-size: 16px;
  color: var(--color-muted);
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.schedule__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 300;
  font-size: 16px;
  line-height: 32px;
  color: var(--color-muted);
}

.schedule__divider { width: 100%; height: 1px; }

.visit__address {
  margin-top: -16px;      /* gap de 24px tras el horario */
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 32px;
  color: var(--color-muted);
}

.map {
  position: relative;
  display: block;
  width: 482px;
  height: 533px;
  margin-left: 3px;
  flex-shrink: 0;
  overflow: hidden;
}
.map__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .4s ease;
}
.map:hover .map__img { transform: scale(1.02); }
.map__pin {
  position: absolute;
  left: 171px;
  top: 276px;
  width: 69px;
  height: 69px;
  object-fit: cover;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--color-footer);
  border-top: 1px solid #030303;
  min-height: 327px;
  padding: 64px 0;
}

.footer__inner {
  width: 1232px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  font-family: var(--font-footer);
  line-height: 1.4;
  color: #fff;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__cols { display: flex; gap: 48px; }

.footer__col { width: 103px; display: flex; flex-direction: column; gap: 16px; }
.footer__col--wide { width: 170px; }

.footer__col h4 {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 400;
  font-size: 14px;
}
.footer__col a:hover { color: var(--color-accent); }

.footer__logo { width: 100px; height: 100px; object-fit: cover; }

.footer__copy {
  text-align: right;
  font-size: 10px;
  opacity: .6;      /* contraste suficiente sobre el fondo del pie */
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Pantallas algo menores de 1440 */
@media (max-width: 1400px) {
  .values { gap: clamp(48px, 14vw, 258px); }
  .story { gap: clamp(40px, 8vw, 165px); padding: 0 24px; }
  .visit { gap: clamp(40px, 6vw, 83px); padding: 0 24px; }
  .contact__inner { gap: clamp(40px, 10vw, 226px); padding: 0 clamp(24px, 7vw, 102px); }
  .gallery__grid { padding: 0 2px; }
}

@media (max-width: 1240px) {
  .hero__title-wrap { left: 3%; }
  .hero__statue { left: auto; right: 3%; width: clamp(320px, 38vw, 489px); height: auto; }
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-gap: 96px; }

  .nav__group { gap: 28px; }
  .nav { gap: 24px; }
  .lang-switch { right: 16px; }

  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 170px 24px 0;
  }
  .hero__title-wrap { position: relative; left: auto; top: auto; }
  .hero__title { left: 50%; transform: translateX(-50%); }  /* centrado sobre el círculo en tablet */
  .hero__statue { position: static; width: min(489px, 80%); height: auto; --statue-scale: 1; }

  .values { gap: 40px; padding: 0 24px; }

  .team { padding: 0 24px; }

  .gallery__grid { flex-wrap: wrap; padding: 0 24px; gap: 16px; }
  .gallery__col, .gallery__col--wide { flex: 1 1 calc(33.333% - 16px); gap: 16px; }

  .story, .visit { flex-direction: column; align-items: center; }
  .story__text, .visit__info { width: 100%; max-width: 640px; }

  .contact__inner { flex-direction: column; gap: 40px; }
  .contact__intro { width: 100%; }
  .form { width: 100%; max-width: 640px; }
  .form__row .form__field { width: auto; flex: 1; }
}

/* Móvil */
@media (max-width: 760px) {
  :root { --section-gap: 72px; }

  .header { padding: 24px 16px 0; }
  .nav { display: flex; justify-content: space-between; }
  .nav__group { display: none; }
  .nav__logo img { width: 72px; height: 72px; }
  .lang-switch { position: static; transform: none; margin-left: auto; margin-right: 8px; }

  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;                /* color de las tres rayas */
    -webkit-appearance: none;   /* Safari: sin estilo de botón del sistema */
    appearance: none;
  }
  /* Ancho y color explícitos: Safari en iPhone no estira los <span> dentro de un <button> flex */
  .nav__toggle span { display: block; flex: none; align-self: center; width: 24px; height: 2px; border-radius: 1px; background-color: #fff; transition: transform .25s ease, opacity .25s ease; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
    padding: 24px;
    background: rgba(4, 4, 4, .96);
    font-family: var(--font-flex);
    font-weight: 500;
    font-size: 20px;
    text-transform: capitalize;
  }
  .mobile-menu a:hover { color: var(--color-accent); }

  /* Hero móvil: sin círculo, título centrado arriba y estatua centrada debajo */
  .hero { padding: 120px 16px 16px; align-items: center; gap: 0; }  /* abajo 16px (antes 72px): estatua más pegada a la siguiente sección */
  .hero__circle { display: none; }
  .hero__title-wrap::before { display: none; }
  .hero__title-wrap { width: auto; height: auto; position: relative; }
  .hero__title {
    position: static;
    width: auto;
    transform: none;
    text-align: center;
    font-size: clamp(52px, 17vw, 72px);
    line-height: 1.05;
  }
  .hero__subtitle { font-size: 14px; letter-spacing: 0.02em; margin-top: 10px; }
  .hero__statue {
    width: min(100%, 460px);  /* estatua más grande en móvil (antes 78 %, máx. 360px) */
    margin-top: -12px;        /* acerca la estatua al título (el vídeo tiene margen negro arriba) */
  }

  .values { flex-direction: column; align-items: center; }
  .section-head { padding: 0 16px; }

  .team__grid { grid-template-columns: 1fr; }
  .team__grid > .team-card,
  .team__grid > .team-card--third { grid-column: auto; aspect-ratio: 558 / 465; }
  .team-card__back { gap: 16px; padding: 16px 20px; }
  .team-card__avatar { width: 72px; height: 72px; }
  .team-card__name { font-size: 22px; line-height: 28px; }
  .team-card__bio { font-size: 14px; }

  .gallery__col, .gallery__col--wide { flex-basis: calc(50% - 16px); }

  .display { font-size: 44px; }
  .story__img { width: 100%; height: auto; aspect-ratio: 449 / 533; }

  .form__row { flex-direction: column; gap: 16px; }
  .form__row .form__field { width: 100%; }
  .form .btn { width: 100%; }

  .map { width: 100%; max-width: 482px; margin-left: 0; }
  .map__pin { left: 35.5%; }

  .footer__top { flex-direction: column-reverse; gap: 32px; }
  .footer__cols { flex-wrap: wrap; }
  .footer__copy { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .team-card__inner { transition: none; }
  .hero__title-wrap::before { animation: none; }
  * { transition: none !important; }
}

/* ---------- Proporciones de la galería y encuadres (antes estaban en el HTML) ---------- */
.gallery__img--01 { aspect-ratio: 258 / 201; }
.gallery__img--02 { aspect-ratio: 258 / 386; }
.gallery__img--03 { aspect-ratio: 258 / 303; }
.gallery__img--04 { aspect-ratio: 258 / 284; }
.gallery__img--05 { aspect-ratio: 258 / 438; }
.gallery__img--06 { aspect-ratio: 258 / 149; }
.gallery__img--07 { aspect-ratio: 258 / 187; }
.gallery__img--08 { aspect-ratio: 258 / 187; }
.gallery__img--09 { aspect-ratio: 258 / 187; }
.gallery__img--10 { aspect-ratio: 308 / 135; }
.gallery__img--11 { aspect-ratio: 308 / 451; }
.team-card__img--alex { object-position: 50% 35%; }
.team-card__avatar--alex { object-position: 50% 38%; }

/* ---------- Accesibilidad / anti-spam ---------- */
/* Texto solo para lectores de pantalla (etiquetas de los campos del formulario) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Campo trampa anti-spam: fuera de la vista */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}


/* =========================================================
   PÁGINA DE GALERÍA (galeria.html)
   ========================================================= */
/* Cabecera compacta de las páginas interiores */
/* Mismo menú que la página principal (tamaños, espacios y posición idénticos).
   La única diferencia: aquí la cabecera ocupa su sitio (no va encima de un hero). */
.header--page {
  position: relative;
  background: var(--color-bg);
}
/* Enlace de la página actual: subrayado amarillo que no mueve el texto */
.nav__group a.is-active { position: relative; }
.nav__group a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--color-accent);
}

.gallery-page { padding: 64px 24px 140px; }

.gallery-page__inner {
  width: 1164px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.gallery-page__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gallery-page__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 32px;
  color: var(--color-text);
  text-align: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filter {
  padding: 6px 16px 9px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.filter:hover { color: var(--color-accent); }
.filter.is-active { border-bottom-color: var(--color-accent); }
.filter.is-active:hover { color: var(--color-text); }
.filter:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.works {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work { aspect-ratio: 372 / 465; overflow: hidden; }
.work[hidden] { display: none; }
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.work:hover img { transform: scale(1.03); }

.works__empty {
  font-weight: 300;
  font-size: 16px;
  color: var(--color-muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .works { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 760px) {
  .gallery-page { padding: 40px 16px 72px; }
  .gallery-page__title { font-size: 26px; }
  .works { gap: 8px; }
}


/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 13px;
  border-radius: 999px;
  background: #1a8d4a;               /* verde WhatsApp oscurecido: el texto blanco se lee bien */
  color: #fff;
  font-family: var(--font-flex);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp:hover { background: #1fa257; transform: translateY(-2px); }
.whatsapp:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.whatsapp__icon { flex-shrink: 0; }
/* Espacio al final del pie para que el botón nunca tape el logo ni el copyright */
.footer { padding-bottom: 104px; }

/* En móvil solo el icono (círculo), para no tapar contenido */
@media (max-width: 760px) {
  .whatsapp { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .whatsapp__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* =========================================================
   PÁGINA 404
   ========================================================= */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 24px 120px;
  text-align: center;
}
.not-found__code {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(96px, 20vw, 180px);
  line-height: 1;
  color: var(--color-accent);
  text-shadow: 0 0 40px rgba(253, 197, 25, .35);
}
.not-found__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--color-text);
}
.not-found__text {
  max-width: 520px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-muted);
}
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }
.btn--ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-text); }
.btn--ghost:hover { background: var(--color-text); color: var(--color-dark); }


/* =========================================================
   PREGUNTAS FRECUENTES (desplegables nativos <details>)
   ========================================================= */
.faq {
  width: 900px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.faq__list { width: 100%; border-top: 1px solid rgba(255, 255, 255, .15); }
.faq__item { border-bottom: 1px solid rgba(255, 255, 255, .15); }

.faq__question {
  position: relative;
  display: block;
  padding: 24px 56px 24px 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--color-accent); }
.faq__question:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

/* Icono + que se convierte en − al abrir */
.faq__question::before,
.faq__question::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--color-accent);
  transition: transform .25s ease;
}
.faq__question::after { transform: rotate(90deg); }
.faq__item[open] .faq__question::after { transform: rotate(0deg); }
.faq__item[open] .faq__question { color: var(--color-accent); }

.faq__answer {
  padding: 0 56px 28px 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
}

@media (max-width: 1024px) { .faq { padding: 0 24px; } }
@media (max-width: 760px) {
  .faq { padding: 0 16px; gap: 40px; }
  .faq__question { font-size: 18px; padding: 20px 44px 20px 0; }
  .faq__answer { padding-right: 0; }
}


/* =========================================================
   RESEÑAS DE GOOGLE
   ========================================================= */
.reviews {
  width: var(--container);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text);
}
.review__stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  font-size: 20px;
  line-height: 1;
}
.reviews__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 28px 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .03);
}
/* Comilla decorativa con el color de la marca */
.review::before {
  content: "“";
  position: absolute;
  top: -18px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 1;
  color: var(--color-accent);
  opacity: .9;
}
.review__text {
  flex: 1;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
}
.review__author { display: flex; flex-direction: column; gap: 4px; }
.review__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text);
}
.review__note { font-size: 13px; color: var(--color-muted); }
.reviews__rating { flex-wrap: wrap; text-align: center; text-decoration: none; transition: color .2s ease; }
/* La nota enlaza a la ficha de Google: subrayado discreto al pasar el ratón */
.reviews__rating span:last-child { border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
.reviews__rating:hover { color: var(--color-accent); }
.reviews__rating:hover span:last-child { border-bottom-color: var(--color-accent); }
.reviews__rating:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

@media (max-width: 1024px) {
  .reviews { padding: 0 24px; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 760px) {
  .reviews { padding: 0 16px; gap: 36px; }
  .review { padding: 28px 22px 24px; }
}


/* =========================================================
   TEXTOS LEGALES: pie, casilla del formulario y páginas legales
   ========================================================= */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; }
.footer__legal a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--color-accent); }

/* Casilla de aceptación */
.form__consent { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--color-text); }
.form__check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.form__check input.is-invalid { outline: 2px solid #ff6b6b; outline-offset: 2px; }
.form__check label { cursor: pointer; }
.form__check a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
/* Información básica de protección de datos: "letra pequeña", discreta */
.form__legal { font-size: 11px; line-height: 1.5; color: rgba(216, 203, 203, 0.6); }
.form__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form__legal a:hover, .form__legal a:focus-visible { color: var(--color-muted); }

/* Páginas legales */
.legal { padding: 64px 24px 120px; }
.legal__inner {
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
}
.legal__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  color: var(--color-text);
}
.legal__updated { margin: 12px 0 32px; font-size: 14px; }
.legal__inner h2 {
  margin: 40px 0 12px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--color-text);
}
.legal__inner p { margin-bottom: 12px; }
.legal__inner ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal__inner li { margin-bottom: 6px; }
.legal__inner strong { font-weight: 500; color: var(--color-text); }
.legal__inner a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .legal { padding: 40px 16px 72px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   CABECERA FIJA EN MÓVIL
   En móvil la cabecera (logo, ES/EN y menú) se queda arriba al hacer
   scroll, con fondo negro para que se lea sobre cualquier sección.
   ========================================================= */
@media (max-width: 760px) {
  .header,
  .header--page {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 12px 16px;
    background: var(--color-bg);
  }
  .nav__logo img { width: 56px; height: 56px; }
  /* Las páginas interiores dejan hueco para la cabecera fija */
  .header--page + main { margin-top: 80px; }
  /* Al saltar a una sección (#team, #contact…) el título no queda tapado */
  html { scroll-padding-top: 88px; }
  /* Menú desplegado: si no cabe, se puede desplazar */
  .mobile-menu:not([hidden]) { max-height: calc(100vh - 96px); overflow-y: auto; }
}
