:root {
  --bg: #f8f5f0;
  --surface: #fffdf9;
  --text: #1f1a17;
  --muted: #6f655e;
  --line: rgba(31, 26, 23, 0.12);
  --accent: #b39b7c;
  --accent-dark: #8e775c;
  --glow-ring: rgba(179, 155, 124, 0.28);
  --glow-soft: rgba(179, 155, 124, 0.22);
  --glow-ambient: rgba(142, 119, 92, 0.14);
  --max: 1240px;
  --header-h: 78px;
  --radius: 22px;
  --shadow: 0 12px 40px rgba(25, 20, 16, 0.08);
  --gold-deep: #4a3610;
  --gold-bronze: #6b5218;
  --gold-mid: #8b6b21;
  --gold-rich: #c9a227;
  --gold-bright: #d4b44a;
  --gold-shine: #e0c66a;
  /* Borde fino en tarjetas con foto (portfolio, historias, bloques imagen) */
  --photo-card-border: rgba(201, 162, 39, 0.4);
  --photo-card-border-hover: rgba(201, 162, 39, 0.62);
  /* Mientras carga el WebP del hero (evita flash negro casi puro) */
  --hero-placeholder: #5a4d43;
  /* Márgenes flotantes alineados con .container (mismo criterio que el ajuste al ancho) + áreas seguras */
  --site-inline-gutter: clamp(24px, 4vw, 80px);
  --float-margin-bottom: max(
    clamp(22px, 4.5vw, 34px),
    env(safe-area-inset-bottom, 0px)
  );
  /* Un solo valor para izq./der.: WhatsApp y globo asistente (cerrado) quedan simétricos */
  --float-inline-symmetric: max(
    clamp(22px, 4.5vw, 34px),
    calc(var(--site-inline-gutter) / 2),
    env(safe-area-inset-left, 0px),
    env(safe-area-inset-right, 0px)
  );
  --float-margin-left: var(--float-inline-symmetric);
  --float-margin-right: var(--float-inline-symmetric);
  /* Panel asistente abierto: aire superior (sin tener que desplazar la página en Safari) */
  --asistente-sheet-pad-top: max(
    64px,
    env(safe-area-inset-top, 0px),
    calc(var(--site-inline-gutter) / 2),
    min(88px, 22vmin)
  );
  --asistente-sheet-pad-inline: var(--float-inline-symmetric);
  --gold-gradient: linear-gradient(
    125deg,
    #3a2a0a 0%,
    #5c4016 15%,
    #7a5a1a 30%,
    #9a7224 42%,
    #b8912e 52%,
    #c9a227 60%,
    #d4b44a 68%,
    #a67c2e 80%,
    #6b4a12 92%,
    #4a3610 100%
  );
}

/* Móvil/tablet: más aire lateral (globos) y superior (panel abierto) sin depender del scroll */
@media (max-width: 1023px) {
  :root {
    --float-inline-symmetric: max(
      clamp(24px, 5.5vw, 40px),
      calc(var(--site-inline-gutter) / 2),
      env(safe-area-inset-left, 0px),
      env(safe-area-inset-right, 0px)
    );
    --asistente-sheet-pad-top: max(
      82px,
      env(safe-area-inset-top, 0px),
      calc(var(--site-inline-gutter) / 2),
      min(120px, 30vmin)
    );
  }
}

/* Brillo dinámico solo con CSS (textos y filos con degradado dorado) */
@keyframes goldGradientShift {
  0%,
  100% {
    background-position: 0% 48%;
  }

  50% {
    background-position: 100% 52%;
  }
}

@keyframes goldEdgeShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (min-width: 1400px) {
  :root {
    --max: 1280px;
  }
}

@media (min-width: 1600px) {
  :root {
    --max: 1360px;
  }
}

@media (min-width: 1920px) {
  :root {
    --max: 1420px;
  }
}

@media (min-width: 2560px) {
  :root {
    --max: 1540px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

@media (max-width: 1023px) {
  body.asistente-panel-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
}

body.nav-open {
  overflow: hidden;
}

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

/* Fotos en contenedor cover: max-width global + width/height 100% puede deformar en WebKit móvil */
.portfolio-item__img,
.pareja-photo__img,
.pareja-page-hero__img,
.image-block__img {
  max-width: none;
  max-height: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - clamp(24px, 4vw, 80px)), var(--max));
  margin-inline: auto;
}

.section {
  padding: 76px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .eyebrow--gold {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: var(--gold-gradient);
    background-size: 200% 200%;
    background-position: 0% 48%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldGradientShift 14s ease-in-out infinite;
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .eyebrow--gold {
    color: var(--gold-rich);
  }
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 900px;
  margin-bottom: 22px;
}


h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  color: var(--text);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 700px;
}

.muted {
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn-row--sobre-cta {
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.25s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn.primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn.primary:hover {
  background: #000;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  background: rgba(31, 26, 23, 0.04);
}

.btn__inner {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.btn.primary .btn__inner {
  color: inherit;
}

.btn--gold-text-hover.primary {
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.btn--gold-text-hover.primary .btn__inner {
  transition:
    color 0.28s ease,
    -webkit-text-fill-color 0.28s ease;
}

.btn--gold-text-hover.primary:hover,
.btn--gold-text-hover.primary:focus-visible {
  background: #faf7f2;
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.12);
}

.btn--gold-text-hover.primary:hover .btn__inner,
.btn--gold-text-hover.primary:focus-visible .btn__inner {
  background-image: var(--gold-gradient);
  background-size: 180% 180%;
  background-position: 20% 45%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldGradientShift 12s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .btn--gold-text-hover.primary:hover .btn__inner,
  .btn--gold-text-hover.primary:focus-visible .btn__inner {
    animation: none;
    background-size: 150% 150%;
  }
}

/* Borde degradado solo en el filo (máscara); el interior sigue siendo plano */
.btn.secondary.btn--gold-ring {
  position: relative;
  border: none;
  background: var(--surface);
  color: var(--text);
  z-index: 0;
  isolation: isolate;
  transition: background 0.25s ease;
}

.btn.secondary.btn--gold-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  box-sizing: border-box;
  background: var(--gold-gradient);
  background-size: 240% 240%;
  background-position: 0% 50%;
  animation: goldEdgeShimmer 9s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn.secondary.btn--gold-ring::before {
    animation: none;
    background-size: 100% 100%;
    background-position: center;
  }
}

.btn.secondary.btn--gold-ring .btn__inner {
  position: relative;
  z-index: 1;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.btn.secondary.btn--gold-ring:hover,
.btn.secondary.btn--gold-ring:focus-visible {
  background: rgba(255, 253, 249, 0.98);
}

.btn.secondary.btn--gold-ring:hover::before,
.btn.secondary.btn--gold-ring:focus-visible::before {
  filter: brightness(1.1);
}

header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(248, 245, 240, 0.82);
  border-bottom: 1px solid rgba(31, 26, 23, 0.06);
  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}

header.header--on-hero {
  background: rgba(22, 18, 16, 0.34);
  border-bottom-color: rgba(255, 253, 249, 0.08);
}

header.header--on-hero .nav-links a {
  color: rgba(255, 253, 249, 0.74);
}

header.header--on-hero .nav-links a:hover {
  color: #fffefd;
}

header.header--on-hero .nav-links a[aria-current="page"] {
  color: #fffefd;
  font-weight: 600;
  opacity: 1;
}

header.header--on-hero .nav-toggle {
  border-color: rgba(255, 253, 249, 0.28);
  background: rgba(255, 253, 249, 0.07);
  color: #fffefd;
}

body.nav-open header {
  z-index: 100;
  background: rgba(248, 245, 240, 0.97) !important;
  border-bottom-color: rgba(31, 26, 23, 0.08) !important;
}

body.nav-open header .nav-links a {
  color: var(--muted);
}

body.nav-open header .nav-links a:hover {
  color: var(--text);
}

body.nav-open header .nav-toggle {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  background: transparent;
}

.brand-logo {
  display: block;
  height: clamp(36px, 5vw, 48px);
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  object-position: left center;
  background-color: transparent;
  background-image: none;
  vertical-align: middle;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  font-weight: 600;
  color: var(--gold-mid);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* —— Hero inmersivo a pantalla completa —— */
.hero-fullscreen {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--hero-placeholder);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide__zoom {
  position: absolute;
  inset: 0;
  background-color: var(--hero-placeholder);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  will-change: transform;
}

/* Hero inicio: WebP por viewport */
.hero-slide__zoom--s1 {
  background-image: url("image/hero/hero01-640.webp");
}

.hero-slide__zoom--s2 {
  background-image: url("image/hero/hero02-640.webp");
}

.hero-slide__zoom--s3 {
  background-image: url("image/hero/hero03-640.webp");
}

.hero-slide__zoom--s4 {
  background-image: url("image/hero/hero04-640.webp");
}

@media (min-width: 768px) {
  .hero-slide__zoom--s1 {
    background-image: url("image/hero/hero01-960.webp");
  }

  .hero-slide__zoom--s2 {
    background-image: url("image/hero/hero02-960.webp");
  }

  .hero-slide__zoom--s3 {
    background-image: url("image/hero/hero03-960.webp");
  }

  .hero-slide__zoom--s4 {
    background-image: url("image/hero/hero04-960.webp");
  }
}

@media (min-width: 1024px) {
  .hero-slide__zoom--s1 {
    background-image: url("image/hero/hero01-1280.webp");
  }

  .hero-slide__zoom--s2 {
    background-image: url("image/hero/hero02-1280.webp");
  }

  .hero-slide__zoom--s3 {
    background-image: url("image/hero/hero03-1280.webp");
  }

  .hero-slide__zoom--s4 {
    background-image: url("image/hero/hero04-1280.webp");
  }
}

@media (min-width: 1440px) {
  .hero-slide__zoom--s1 {
    background-image: url("image/hero/hero01-1920.webp");
  }

  .hero-slide__zoom--s2 {
    background-image: url("image/hero/hero02-1920.webp");
  }

  .hero-slide__zoom--s3 {
    background-image: url("image/hero/hero03-1920.webp");
  }

  .hero-slide__zoom--s4 {
    background-image: url("image/hero/hero04-1920.webp");
  }
}

.hero-slide__zoom.is-zooming {
  animation: heroSlideKen 3s ease-out forwards;
}

@keyframes heroSlideKen {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide__zoom.is-zooming {
    animation: none;
  }

  .hero-slide {
    transition: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      85% 65% at 50% 42%,
      rgba(12, 10, 9, 0.52) 0%,
      rgba(12, 10, 9, 0.28) 55%,
      rgba(12, 10, 9, 0.4) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 10, 9, 0.42) 0%,
      rgba(12, 10, 9, 0.48) 45%,
      rgba(12, 10, 9, 0.55) 100%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + clamp(28px, 7vh, 88px)) 0 clamp(96px, 13vh, 132px);
}

.hero-copy--immersive {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 8px);
}

/* Legibilidad sin “caja”: sombreado oscuro bajo el trazo de cada línea */
.hero-eyebrow {
  color: rgba(255, 253, 249, 0.82);
  margin-bottom: clamp(14px, 2.2vh, 22px);
  text-shadow:
    0 0.14em 0.22em rgba(6, 5, 4, 0.88),
    0 0.08em 0.45em rgba(6, 5, 4, 0.65),
    0 0 0.85em rgba(6, 5, 4, 0.45);
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 5.2vw, 4.25rem);
  color: #fffefd;
  max-width: 18ch;
  margin-bottom: clamp(18px, 2.5vh, 26px);
  text-wrap: balance;
  text-shadow:
    0 0.04em 0.08em rgba(5, 4, 3, 0.95),
    0 0.08em 0.2em rgba(5, 4, 3, 0.75),
    0 0.14em 0.55em rgba(5, 4, 3, 0.55),
    0 0 1.1em rgba(5, 4, 3, 0.35);
}

.hero-lead {
  color: rgba(255, 253, 249, 0.92);
  max-width: 38rem;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.65;
  text-shadow:
    0 0.1em 0.18em rgba(6, 5, 4, 0.82),
    0 0.06em 0.4em rgba(6, 5, 4, 0.6),
    0 0 0.75em rgba(6, 5, 4, 0.38);
}

.hero-cta-row {
  margin-top: clamp(28px, 3.8vh, 42px);
  justify-content: center;
  gap: 16px;
}

.hero-fullscreen .hero-cta-row .btn {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1.05rem;
  border-radius: 999px;
}

.hero-fullscreen .btn.primary.btn--gold-text-hover {
  background: #fffefd;
  color: var(--text);
  border-color: #fffefd;
}

.hero-fullscreen .btn.primary.btn--gold-text-hover:hover,
.hero-fullscreen .btn.primary.btn--gold-text-hover:focus-visible {
  background: rgba(255, 253, 249, 0.94);
  border-color: rgba(212, 180, 74, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.22);
}

.hero-fullscreen .btn.secondary.btn--gold-ring {
  background: transparent;
  color: rgba(255, 253, 249, 0.94);
}

.hero-fullscreen .btn.secondary.btn--gold-ring .btn__inner {
  text-shadow:
    0 0.1em 0.2em rgba(6, 5, 4, 0.55),
    0 0.05em 0.35em rgba(6, 5, 4, 0.4);
}

.hero-fullscreen .btn.secondary.btn--gold-ring:hover,
.hero-fullscreen .btn.secondary.btn--gold-ring:focus-visible {
  background: rgba(255, 253, 249, 0.07);
}

.hero-scroll-hint {
  /* Quitamos la “rallita” enlazada (scroll hint) en todos los héroes */
  display: none;
}

.hero-scroll-hint:hover,
.hero-scroll-hint:focus-visible {
  color: rgba(255, 253, 249, 0.78);
  outline: none;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0) 0%,
    rgba(255, 253, 249, 0.45) 50%,
    rgba(255, 253, 249, 0) 100%
  );
  animation: heroScrollPulse 2.4s ease-in-out infinite;
}

@keyframes heroScrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 0.85;
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line {
    animation: none;
  }
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.image-block {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 620px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  background: url("image/documental.webp") center/cover no-repeat;
}

.image-block:has(.image-block__img) {
  background: none;
}

.image-block__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sobre mí: retrato un poco más ancho que el bloque genérico, menos recorte vertical */
#sobre-mi .image-block {
  min-height: unset;
  aspect-ratio: 5 / 6;
  width: 100%;
  background-position: center 18%;
  background-size: cover;
}

#sobre-mi .image-block__img {
  object-position: center 18%;
}

#estudio-espacio .image-block__img {
  object-position: center 20%;
}

.quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  margin: 18px 0 26px;
  font-style: italic;
}

/* Cierre estudio: cita y texto apoyo centrados */
#estudio-cierre .quote,
#estudio-cierre .muted {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#estudio-cierre .quote {
  max-width: 36rem;
}

#estudio-cierre .muted {
  max-width: 40rem;
  line-height: 1.6;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
  align-items: stretch;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.testimonial-stars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  flex-shrink: 0;
}

.testimonial-stars svg path {
  fill: var(--gold-rich);
}

.testimonials-cta {
  margin-top: clamp(28px, 4vw, 40px);
  text-align: center;
}

.testimonials-cta .btn-row {
  justify-content: center;
  margin-top: 0;
}

.testimonial-card blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.32rem, 2vw, 1.52rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.38;
  color: var(--text);
  flex: 1 1 auto;
}

.testimonial-card cite {
  display: block;
  margin-top: auto;
  padding-top: 22px;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-rich);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .testimonial-card cite {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: var(--gold-gradient);
    background-size: 210% 210%;
    background-position: 18% 42%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldGradientShift 16s ease-in-out infinite;
    animation-delay: -4s;
  }
}

.soft-cta {
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid rgba(31, 26, 23, 0.08);
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  margin: 0;
}

.soft-cta .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}

.soft-cta .btn-row {
  justify-content: center;
  margin-top: 26px;
}

.form-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.contact-trust {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: rgba(111, 101, 94, 0.92);
  margin-top: 14px;
  max-width: 520px;
  line-height: 1.5;
}

.stories-grid,
.services-grid {
  display: grid;
  gap: 22px;
}

.stories-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
  margin-top: 32px;
  align-items: stretch;
}

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}

a.story-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.story-image {
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.story-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.5vw, 22px);
}

.story-meta {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}

.story-card .story-content h3 {
  color: var(--gold-rich);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .story-card .story-content h3 {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: var(--gold-gradient);
    background-size: 200% 200%;
    background-position: 24% 38%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldGradientShift 15s ease-in-out infinite;
    animation-delay: -2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .eyebrow--gold {
      animation: none;
      background-size: 160% 160%;
      background-position: 22% 40%;
    }

    .testimonial-card cite {
      animation: none;
      background-size: 180% 180%;
      background-position: 18% 42%;
    }

    .story-card .story-content h3 {
      animation: none;
      background-size: 170% 170%;
      background-position: 24% 38%;
    }
  }
}

/* Index — «Portfolio por momentos»: mismo encaje que mosaico Bodas (bloque alto + rejilla 12 col) */
#portfolio .portfolio-mosaic--index {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr);
  min-height: min(72vh, 640px);
}

/*
 * Misma idea que Historias (.story-image): el encuadre va en un hijo con aspect-ratio.
 * El fondo solo en .portfolio-item colapsaba en móvil (label absoluta = 0 altura en flujo).
 */
#portfolio .portfolio-mosaic--index .portfolio-item {
  display: flex;
  flex-direction: column;
  padding: 0;
  background-image: none;
  /* La fila del grid puede ser más alta que 4/5 según el ancho: la tarjeta y el visual estiran a la celda */
  align-self: stretch;
  min-height: 0;
  height: 100%;
}

#portfolio .portfolio-mosaic--index .portfolio-item__visual {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  /* Antes 4/5 fijaba altura por ancho y quedaba hueco + fondo #1c1816 si la celda era más alta */
  aspect-ratio: auto;
  background-color: #1c1816;
  overflow: hidden;
}

#portfolio .portfolio-mosaic--index .portfolio-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
  max-height: none;
}

/* min-height:0 solo en escritorio: celdas del grid comparten fila */
@media (min-width: 1181px) {
  #portfolio .portfolio-mosaic--index .portfolio-item {
    min-height: 0;
  }
}

.portfolio-item {
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  /* Fondo oscuro bajo la foto: si hay bandas o bordes claros, no se confunden con la página crema */
  background-color: #1c1816;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Filo degradado animado (fotos en cards / bloques imagen) */
.portfolio-item::after,
.image-block::after,
.story-card::after,
.seville-visual::after,
.pareja-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  box-sizing: border-box;
  background: var(--gold-gradient);
  background-size: 260% 260%;
  background-position: 0% 50%;
  animation: goldEdgeShimmer 11s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  transition: filter 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-item::after,
  .image-block::after,
  .story-card::after,
  .seville-visual::after,
  .pareja-photo::after {
    animation: none;
    background: linear-gradient(
      125deg,
      rgba(201, 162, 39, 0.55),
      rgba(212, 180, 74, 0.35),
      rgba(201, 162, 39, 0.5)
    );
    background-size: 100% 100%;
  }
}

/* Portfolio (mosaicos): clic abre lightbox */
.portfolio-mosaic .portfolio-item,
#portfolio .portfolio-mosaic--index .portfolio-item {
  cursor: pointer;
}

.portfolio-item.large {
  grid-column: span 7;
}

.portfolio-item.medium {
  grid-column: span 5;
}

.portfolio-item.small {
  grid-column: span 4;
}

#portfolio .portfolio-mosaic--index .portfolio-item--span-all {
  grid-column: 1 / -1;
}

/* —— Portfolio landing: mosaicos por sección (bloques distintos, mismo encaje visual) —— */
.portfolio-mosaic {
  display: grid;
  gap: clamp(14px, 2.2vw, 22px);
  margin-top: 28px;
  width: 100%;
  align-content: stretch;
}

/* No aplicar min-height:0 al mosaico del home: allí no hay contenido en flujo que marque altura (Safari → “tiras”) */
.portfolio-mosaic:not(.portfolio-mosaic--index) .portfolio-item {
  min-height: 0;
}

/*
 * Página portfolio (y cualquier mosaico con <img>): sin #portfolio del index, el <img> quedaba en flujo
 * y la celda mostraba background #1c1816 como “banda negra”. Misma pauta que en #portfolio .portfolio-mosaic--index.
 */
.portfolio-mosaic .portfolio-item:has(.portfolio-item__visual) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0;
  background-image: none;
}

.portfolio-mosaic .portfolio-item__visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
  background-color: #1c1816;
}

.portfolio-mosaic .portfolio-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
  max-height: none;
}

/* Bodas: gran vertical izquierda + dos apiladas a la derecha */
.portfolio-mosaic--bodas {
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr);
  min-height: min(72vh, 640px);
}

.portfolio-mosaic--bodas .portfolio-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / -1;
}

.portfolio-mosaic--bodas .portfolio-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.portfolio-mosaic--bodas .portfolio-item:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

/* El día completo — Ceremonia (panorámica iglesia): banda central con altar y pareja, simetría horizontal */
.portfolio-item--ceremonia03 .portfolio-item__img {
  /* Desde abajo, ~10 % de margen respecto al borde inferior del encuadre */
  object-position: center 90%;
}

/* Preboda: dos cuadrados en columna izquierda + panel alto derecha */
.portfolio-mosaic--preboda {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.48fr);
  grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr);
  min-height: min(68vh, 600px);
}

.portfolio-mosaic--preboda .portfolio-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.portfolio-mosaic--preboda .portfolio-item:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.portfolio-mosaic--preboda .portfolio-item:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / -1;
}

/* Ceremonia: tres en una fila, ancho completo */
.portfolio-mosaic--ceremonia {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  min-height: 0;
}

.portfolio-mosaic--ceremonia .portfolio-item {
  aspect-ratio: 1.06 / 1;
  min-height: 0;
}

/* Detalles: espejo de Bodas — dos apiladas izquierda, gran panel derecha */
.portfolio-mosaic--detalles {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr);
  grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr);
  min-height: min(72vh, 640px);
}

.portfolio-mosaic--detalles .portfolio-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.portfolio-mosaic--detalles .portfolio-item:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.portfolio-mosaic--detalles .portfolio-item:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / -1;
}

/* Ceremonia (ceremonia02): posición para el mismo plano que antes */
.portfolio-item--ceremonia02 .portfolio-item__img {
  object-position: center 56%;
}

@media (min-width: 900px) {
  .portfolio-item--ceremonia02 .portfolio-item__img {
    object-position: center 58%;
  }
}

/* Destino: encuadre un poco más bajo que antes (48%) para recortar un borde raro arriba */
.portfolio-item--destino .portfolio-item__img {
  object-position: center 51%;
}

/* El sí: un poco de zoom horizontal (antes background-size ~126–130%) */
.portfolio-item--el-si .portfolio-item__img {
  object-position: center 68%;
  transform: scale(1.12);
  transform-origin: center 68%;
}

@media (min-width: 900px) {
  .portfolio-item--el-si .portfolio-item__img {
    object-position: center 70%;
    transform: scale(1.08);
    transform-origin: center 70%;
  }
}

/* Detalle e invitados (portfolio): encuadre por foto (mosaico cat-detalles) */
.portfolio-item--detalle-novia .portfolio-item__img {
  /* Un pelín de aire arriba: la cabeza casi al borde, sin pegarse al recorte */
  object-position: 50% 8%;
}

@media (max-width: 1180px) {
  .portfolio-item--detalle-novia .portfolio-item__img {
    object-position: 50% 9%;
  }
}

/* Entrada / invitados (tile pequeño inferior izq.): subir plano para que se vea bien al grupo */
.portfolio-item--invitados02 .portfolio-item__img {
  object-position: center 62%;
}

@media (max-width: 1180px) {
  .portfolio-item--invitados02 .portfolio-item__img {
    object-position: center 58%;
  }
}

/* Index — «Portfolio por momentos» solo: grupo en césped (archivo propio invitados-index.webp) */
.portfolio-item--invitados-index .portfolio-item__img {
  object-position: center 50%;
}

@media (max-width: 1180px) {
  .portfolio-item--invitados-index .portfolio-item__img {
    object-position: center 52%;
  }
}

/* Grupo grande (tile derecha): desplazar hacia la izquierda para centrar a la pareja en el encuadre */
.portfolio-item--invitados-grupo .portfolio-item__img {
  object-position: 54% 44%;
}

@media (max-width: 1180px) {
  .portfolio-item--invitados-grupo .portfolio-item__img {
    object-position: 52% 46%;
  }
}

.portfolio-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  font-size: 0.88rem;
}

.portfolio-intro-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
  margin-bottom: 14px;
}

.portfolio-intro-head h2 {
  flex: 1 1 auto;
  margin: 0;
  min-width: min(100%, 16ch);
}

.portfolio-ver-mas {
  flex-shrink: 0;
}

/* Mismo borde dorado que “Ver historias”; texto negro sobre fondo claro (no reglas del hero) */
.portfolio-ver-mas .btn__inner {
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

/* —— Landing portfolio: hero estático (misma familia visual que el index) —— */
.hero-portfolio .hero-portfolio__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--hero-placeholder);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  animation: heroPortfolioKen 22s ease-out forwards;
}

/*
 * Portfolio hero: con cover, un % vertical BAJO recorta techo y sube el sujeto
 * (antes 28% reforzaba el aire superior).
 */
#portfolio-inicio .hero-portfolio__bg {
  background-image: url("image/portfolio-hero-640.webp");
  background-position: 52% 48%;
}

@media (min-width: 768px) {
  #portfolio-inicio .hero-portfolio__bg {
    background-image: url("image/portfolio-hero-960.webp");
  }
}

@media (min-width: 1024px) {
  #portfolio-inicio .hero-portfolio__bg {
    background-image: url("image/portfolio-hero-1280.webp");
  }
}

@media (min-width: 1440px) {
  #portfolio-inicio .hero-portfolio__bg {
    background-image: url("image/portfolio-hero-1920.webp");
  }
}

#estudio-inicio .hero-portfolio__bg {
  background-image: url("images/estudio-hero-640.webp");
}

@media (min-width: 768px) {
  #estudio-inicio .hero-portfolio__bg {
    background-image: url("images/estudio-hero-960.webp");
  }
}

@media (min-width: 1024px) {
  #estudio-inicio .hero-portfolio__bg {
    background-image: url("images/estudio-hero-1280.webp");
  }
}

@media (min-width: 1440px) {
  #estudio-inicio .hero-portfolio__bg {
    background-image: url("images/estudio-hero-1920.webp");
  }
}

@keyframes heroPortfolioKen {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-portfolio .hero-portfolio__bg {
    animation: none;
  }
}

/* Héroe páginas pareja: sin Ken Burns (imagen propia por boda) */
.pareja-page-hero .pareja-page-hero__bg {
  animation: none;
  overflow: hidden;
}

.pareja-page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy--portfolio .hero-title {
  max-width: 22ch;
}

.portfolio-category-block {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.portfolio-category-block + .portfolio-category-block {
  margin-top: clamp(56px, 8vw, 88px);
}

/* Primera categoría: mismo aire que entre bloques (el intro no usa el selector + de arriba) */
#portfolio-trabajos .container > .reveal + .portfolio-category-block {
  margin-top: clamp(56px, 8vw, 88px);
}

.portfolio-category-head {
  margin-bottom: clamp(20px, 3vw, 28px);
  max-width: 720px;
}

.portfolio-category-head .lead {
  margin-top: 12px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.service-card p {
  color: var(--muted);
  line-height: 1.58;
}

.seville-box {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  margin-top: 28px;
  align-items: stretch;
}

.seville-copy,
.seville-visual {
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.seville-copy {
  padding: 32px;
  border: 1px solid var(--line);
}

.seville-visual {
  position: relative;
  min-height: 440px;
  border: 1px solid transparent;
  background:
    linear-gradient(to top, rgba(17, 14, 12, 0.16), rgba(17, 14, 12, 0.02)),
    url("image/sevilla.webp") center/cover no-repeat;
}

/* Estudio: zoom suave sobre la foto para recortar márgenes blancos del archivo */
#estudio-experiencia .seville-visual {
  background-image:
    linear-gradient(to top, rgba(17, 14, 12, 0.16), rgba(17, 14, 12, 0.02)),
    url("image/silvestre04.webp");
  background-size: cover, 128% auto;
  background-position: center, center 46%;
  background-repeat: no-repeat;
}

/* —— Páginas por pareja (galería 9 fotos) —— */
.pareja-gallery-section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.pareja-gallery-lead {
  max-width: 40rem;
}

.pareja-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  margin-top: 28px;
}

.pareja-photo {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.pareja-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Lightbox: foto a pantalla completa, sin marco */
.pareja-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
  box-sizing: border-box;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.pareja-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pareja-lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 12px));
  right: max(12px, env(safe-area-inset-right, 12px));
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.12);
  color: rgba(255, 253, 249, 0.92);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.pareja-lightbox__close:hover {
  background: rgba(255, 253, 249, 0.22);
}

.pareja-lightbox__close:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.85);
  outline-offset: 2px;
}

.pareja-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  user-select: none;
  -webkit-user-drag: none;
}

body.pareja-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .pareja-lightbox {
    transition: none;
  }
}

.contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: visible;
}

.contact-map-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-map-section > .eyebrow {
  margin-bottom: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(100%, 440px));
  column-gap: 44px;
  row-gap: 28px;
  align-items: stretch;
}

.contact-map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px 32px 32px;
  box-shadow: var(--shadow);
}

.contact-map-card .eyebrow {
  margin-bottom: 14px;
}

.contact-address {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.contact-map-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-map-link:hover {
  color: var(--text);
}

.contact-map-frame {
  position: relative;
  isolation: isolate;
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(31, 26, 23, 0.04);
  height: min(360px, 52vw);
  min-height: 260px;
}

.contact-map-frame iframe {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  width: 100%;
}

.contact-card {
  border-right: 1px solid rgba(31, 26, 23, 0.1);
  padding-right: 32px;
}

.form-card .form-intro {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.contact-form-success {
  flex-shrink: 0;
  padding: 4px 0 8px;
}

.contact-form-success__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}

.contact-form-error {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #8b3a2a;
}

.form-card--sent {
  justify-content: center;
}

.contact-card .contact-trust {
  flex-shrink: 0;
}

.contact-card .contact-list {
  flex: 1 1 auto;
  min-height: 0;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-item span {
  display: block;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-item a:hover {
  color: var(--accent-dark);
}

form {
  display: grid;
  gap: 16px;
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.form-card form textarea {
  flex: 1 1 auto;
  min-height: 88px;
  resize: vertical;
}

/* Campos más bajos solo en la tarjeta de contacto */
.form-card input,
.form-card textarea,
.form-card select {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.98rem;
}

.form-card .date-picker__trigger {
  min-height: 44px;
  padding: 11px 14px 11px 16px;
  border-radius: 16px;
  font-size: 0.98rem;
}

.form-card form .btn {
  flex-shrink: 0;
  margin-top: 4px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 16px 18px;
  font: inherit;
  outline: none;
  transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 4px rgba(179, 155, 124, 0.12);
}

/* Calendario del formulario (picker propio: táctil, acorde al dorado / tarjetas) */
.date-picker {
  position: relative;
  width: 100%;
}

.date-picker__trigger {
  width: 100%;
  min-height: 54px;
  padding: 16px 18px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 20px;
  border: 1px solid rgba(31, 26, 23, 0.14);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.date-picker__trigger:hover {
  border-color: rgba(31, 26, 23, 0.2);
}

.date-picker__trigger:focus-visible {
  border-color: rgba(166, 124, 46, 0.65);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.16);
}

.date-picker__label {
  flex: 1;
  min-width: 0;
}

.date-picker__label--placeholder {
  color: var(--muted);
}

.date-picker__chev {
  flex-shrink: 0;
  color: var(--gold-mid);
  display: grid;
  place-items: center;
  opacity: 0.92;
}

.date-picker__dropdown {
  position: absolute;
  z-index: 56;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  padding: 18px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    var(--shadow),
    0 24px 48px rgba(25, 20, 16, 0.12);
  animation: datePickerDrop 0.22s ease;
}

@keyframes datePickerDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .date-picker__dropdown {
    animation: none;
  }
}

.date-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.date-picker__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-transform: capitalize;
  text-align: center;
  flex: 1;
}

.date-picker__nav {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.date-picker__nav:hover:not(:disabled) {
  border-color: var(--glow-ring);
  background: #fffefb;
}

.date-picker__nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
}

.date-picker__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.date-picker__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.date-picker__day {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.date-picker__day:hover:not(:disabled):not(.date-picker__day--muted) {
  background: rgba(179, 155, 124, 0.12);
  border-color: rgba(179, 155, 124, 0.25);
}

.date-picker__day:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.45);
}

.date-picker__day--muted {
  color: rgba(111, 101, 94, 0.38);
  cursor: default;
  pointer-events: none;
}

.date-picker__day--disabled {
  color: rgba(111, 101, 94, 0.35);
  cursor: not-allowed;
  pointer-events: none;
}

.date-picker__day--today:not(.date-picker__day--selected) {
  border-color: rgba(166, 124, 46, 0.45);
}

.date-picker__day--selected {
  background-image: var(--gold-gradient);
  background-size: 200% 200%;
  background-position: 30% 42%;
  animation: goldEdgeShimmer 10s ease-in-out infinite;
  color: #fffefd;
  font-weight: 600;
  border-color: rgba(107, 74, 18, 0.35);
  box-shadow: 0 4px 14px rgba(139, 107, 33, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .date-picker__day--selected {
    animation: none;
    background-size: 160% 160%;
  }
}

.date-picker__day--selected:hover:not(:disabled) {
  filter: brightness(1.03);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(31, 26, 23, 0.08);
  margin-top: auto;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row__line {
  margin: 0;
  width: 100%;
}

/* Fila 1: leyenda de cobertura */
.footer-row__line--text {
  text-align: center;
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Fila 2: solo iconos enlazados */
.footer-row__line--social {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.footer-row__line--legal {
  text-align: center;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.8rem;
  color: rgba(111, 101, 94, 0.9);
}

.footer-legal-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fila 3: © + LaraIA — por defecto columna (texto centrado al partir); en escritorio una línea con · */
.footer-row__line--meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: min(22rem, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.footer-meta-sep {
  display: none;
  opacity: 0.85;
}

.footer-row__line--meta .footer-copyright,
.footer-row__line--meta > span:last-of-type {
  display: block;
  text-align: center;
  text-wrap: balance;
}

.footer-tagline {
  display: inline;
}

@media (min-width: 720px) {
  .footer-row__line--meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: baseline;
    gap: 0 0.35em;
    max-width: 42rem;
  }

  .footer-meta-sep {
    display: inline;
  }

  .footer-row__line--meta .footer-copyright,
  .footer-row__line--meta > span:last-of-type {
    display: inline;
    text-align: inherit;
    text-wrap: unset;
  }
}

.footer-row a:hover {
  color: var(--text);
}

/* Instagram: glifo dorado; gradiente oficial de la marca al hover */
.ig-icon {
  display: block;
  flex-shrink: 0;
}

.ig-icon__glyph {
  fill: var(--gold-mid);
  transition: fill 0.28s ease;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  vertical-align: middle;
}

.sobre-social-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.footer-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: -8px;
  line-height: 0;
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
}

.fb-icon__glyph {
  fill: var(--gold-mid);
  transition: fill 0.28s ease;
}

.footer-facebook:hover .fb-icon__glyph,
.footer-facebook:focus-visible .fb-icon__glyph {
  fill: #1877f2;
}

/* Bodas.net (corazón PNG): dorado como IG/FB; sin filtro al hover → rojo/coral natural */
.footer-bodasnet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  margin: -6px -8px;
  line-height: 0;
  text-decoration: none;
}

.footer-bodasnet__img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 30px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(42%) sepia(42%) saturate(520%) hue-rotate(12deg) brightness(0.88);
  transition: filter 0.28s ease;
}

.footer-bodasnet:hover .footer-bodasnet__img,
.footer-bodasnet:focus-visible .footer-bodasnet__img {
  filter: none;
}

.footer-bodasnet:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(201, 162, 39, 0.4);
  border-radius: 10px;
}

.footer-facebook:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(201, 162, 39, 0.4);
  border-radius: 10px;
}

.footer-mywed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  margin: -6px -8px;
  line-height: 0;
  text-decoration: none;
}

/* MyWed: dorado; hover → negro natural del logo (misma idea que IG/FB) */
.footer-mywed__img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(42%) sepia(42%) saturate(520%) hue-rotate(12deg) brightness(0.88);
  transition: filter 0.28s ease;
}

.footer-mywed:hover .footer-mywed__img,
.footer-mywed:focus-visible .footer-mywed__img {
  filter: none;
}

.footer-mywed:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(201, 162, 39, 0.4);
  border-radius: 10px;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: -8px;
  line-height: 0;
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
}

.footer-instagram:hover .ig-icon__glyph,
.footer-instagram:focus-visible .ig-icon__glyph {
  fill: url(#igGrad-footer);
}

.sobre-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: -6px 0;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}

.sobre-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: -6px 0;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}

.sobre-facebook:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px rgba(201, 162, 39, 0.45);
}

.sobre-facebook:hover .fb-icon__glyph,
.sobre-facebook:focus-visible .fb-icon__glyph {
  fill: #1877f2;
}

.sobre-instagram:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px rgba(201, 162, 39, 0.45);
}

.sobre-instagram:hover .ig-icon__glyph,
.sobre-instagram:focus-visible .ig-icon__glyph {
  fill: url(#igGrad-sobre);
}

.laraia-mark {
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
  transition:
    color 0.28s ease,
    font-weight 0.2s ease,
    -webkit-text-fill-color 0.28s ease;
  outline: none;
}

.laraia-mark:hover,
.laraia-mark:focus-visible {
  font-weight: 700;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .laraia-mark:hover,
  .laraia-mark:focus-visible {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: var(--gold-gradient);
    background-size: 180% 180%;
    background-position: 24% 40%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldGradientShift 12s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .laraia-mark:hover,
    .laraia-mark:focus-visible {
      animation: none;
      background-size: 160% 160%;
    }
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .laraia-mark:hover,
  .laraia-mark:focus-visible {
    color: var(--gold-rich);
    -webkit-text-fill-color: var(--gold-rich);
  }
}

.laraia-mark:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px rgba(201, 162, 39, 0.45);
  border-radius: 4px;
}

/* Botón flotante WhatsApp (dorado + icono blanco); visible al salir del hero */
/* Mismos márgenes que .asistente-stack (espejo izq./der.) + área segura móvil */
.wa-float {
  position: fixed;
  bottom: var(--float-margin-bottom);
  left: var(--float-margin-left);
  right: auto;
  z-index: 48;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fffefd;
  text-decoration: none;
  background-color: #8b6b21;
  background-image: var(--gold-gradient);
  background-size: 200% 200%;
  background-position: 26% 40%;
  animation: goldEdgeShimmer 12s ease-in-out infinite;
  box-shadow:
    0 8px 28px rgba(25, 20, 16, 0.22),
    0 0 0 1px rgba(255, 253, 249, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.94);
  transition:
    opacity 0.38s ease,
    visibility 0.38s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.wa-float.is-visible:hover {
  transform: scale(1.06);
  box-shadow:
    0 12px 36px rgba(25, 20, 16, 0.26),
    0 0 0 1px rgba(255, 249, 227, 0.2);
}

.wa-float:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 5px rgba(201, 162, 39, 0.55);
}

.wa-float svg {
  display: block;
  margin-top: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    animation: none;
    background-size: 160% 160%;
    transition: opacity 0.2s ease, visibility 0.2s ease, box-shadow 0.2s ease;
  }

  .wa-float.is-visible:hover {
    transform: scale(1);
  }
}

@media (max-width: 1180px) {
  .split,
  .seville-box,
  .contact-grid,
  .testimonials-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    border-right: none;
    padding-right: 24px;
  }

  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .image-block,
  .seville-visual {
    min-height: 520px;
  }

  /* Estudio — móvil/tablet: el bloque imagen no hereda altura mínima alta; encaja a foto apaisada */
  #estudio-experiencia .seville-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
    width: 100%;
    /* Zoom horizontal sobre la foto (márgenes blancos en el archivo); gradiente sigue cubriendo */
    background-size: cover, 132% auto;
    background-position: center, center 46%;
  }

  #sobre-mi .image-block {
    max-height: min(480px, 58vh);
  }

  /*
   * Portfolio / index <1180px: por defecto 2 columnas (tablet vertical, móvil apaisado estrecho).
   * Tablet apaisado (ancho ≥1024px): 3 columnas en regla aparte (ver bloque siguiente).
   */
  #portfolio .portfolio-mosaic--index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    min-height: 0;
    gap: clamp(14px, 2.2vw, 22px);
  }

  /*
   * Móvil/tablet: sin min-height enorme en la tarjeta + alto al 100% en la img → proporciones raras.
   * El marco fija proporción; la foto sigue con object-fit: cover (recorte, no deformación).
   */
  #portfolio .portfolio-mosaic--index .portfolio-item {
    height: auto;
  }

  #portfolio .portfolio-mosaic--index .portfolio-item__visual {
    min-height: 0;
    height: auto;
    flex: 0 0 auto;
    aspect-ratio: 4 / 5;
  }

  .portfolio-mosaic,
  .portfolio-mosaic--bodas,
  .portfolio-mosaic--preboda,
  .portfolio-mosaic--ceremonia,
  .portfolio-mosaic--detalles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    min-height: 0;
  }

  .portfolio-mosaic .portfolio-item {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 0;
    height: auto;
  }

  .portfolio-mosaic .portfolio-item:has(.portfolio-item__visual) {
    height: auto;
  }

  .portfolio-mosaic .portfolio-item__visual {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .portfolio-mosaic--ceremonia .portfolio-item__visual {
    aspect-ratio: 1.06 / 1;
  }

  /* En pantallas estrechas, el aspect-ratio de ceremonia puede forzar overflow horizontal. */
  .portfolio-mosaic--ceremonia .portfolio-item {
    aspect-ratio: auto;
    width: 100%;
  }

  .portfolio-item.large,
  .portfolio-item.medium,
  .portfolio-item.small {
    grid-column: auto;
  }

  .pareja-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: inline-flex;
  }

  /*
    El backdrop-filter del header hace que position:fixed de descendientes
    use el header (~78px) como bloque contenedor → el menú se recorta.
    En móvil quitamos blur en la cabecera para que el panel cubra el viewport.
  */
  header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: visible;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    max-height: none;
    bottom: auto;
    box-sizing: border-box;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 20px 16px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Fondo opaco: evita que el hero se vea a través (Safari + backdrop del header) */
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(25, 20, 16, 0.12);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0.28s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Por encima de .header--on-hero (enlaces claros sobre el hero) */
  body.nav-open header.header--on-hero .nav-links a {
    color: var(--text);
  }

  body.nav-open header.header--on-hero .nav-links a:hover,
  body.nav-open header.header--on-hero .nav-links a:focus-visible {
    color: var(--text);
  }

  .nav-links a {
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(31, 26, 23, 0.06);
    color: var(--text);
  }
}

/*
 * Tablet apaisado (p. ej. iPad): 3 fotos por fila; 1 sola centrada en columna central;
 * 2 fotos en columnas 1 y 3 (hueco central) para centrar el par.
 * Móvil apaisado sigue en 2 cols (no cumple min-width: 1024px).
 */
@media (max-width: 1180px) and (orientation: landscape) and (min-width: 1024px) {
  .stories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  #portfolio .portfolio-mosaic--index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(140px, min(38vh, 380px));
    grid-auto-rows: minmax(140px, min(38vh, 380px));
  }

  #portfolio .portfolio-mosaic--index .portfolio-item:only-child {
    grid-column: 2;
  }

  #portfolio .portfolio-mosaic--index .portfolio-item:nth-child(1):nth-last-child(2) {
    grid-column: 1;
  }

  #portfolio .portfolio-mosaic--index .portfolio-item:nth-child(2):nth-last-child(1) {
    grid-column: 3;
  }

  .portfolio-mosaic--bodas,
  .portfolio-mosaic--preboda,
  .portfolio-mosaic--ceremonia,
  .portfolio-mosaic--detalles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(120px, min(36vh, 360px));
  }

  .portfolio-mosaic--bodas .portfolio-item:nth-child(1),
  .portfolio-mosaic--bodas .portfolio-item:nth-child(2),
  .portfolio-mosaic--bodas .portfolio-item:nth-child(3),
  .portfolio-mosaic--preboda .portfolio-item:nth-child(1),
  .portfolio-mosaic--preboda .portfolio-item:nth-child(2),
  .portfolio-mosaic--preboda .portfolio-item:nth-child(3),
  .portfolio-mosaic--detalles .portfolio-item:nth-child(1),
  .portfolio-mosaic--detalles .portfolio-item:nth-child(2),
  .portfolio-mosaic--detalles .portfolio-item:nth-child(3) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Dos ítems en mosaicos de 3 fotos: extremos simétricos */
  .portfolio-mosaic--bodas .portfolio-item:only-child,
  .portfolio-mosaic--preboda .portfolio-item:only-child,
  .portfolio-mosaic--ceremonia .portfolio-item:only-child,
  .portfolio-mosaic--detalles .portfolio-item:only-child {
    grid-column: 2;
  }

  .portfolio-mosaic--bodas .portfolio-item:nth-child(1):nth-last-child(2),
  .portfolio-mosaic--preboda .portfolio-item:nth-child(1):nth-last-child(2),
  .portfolio-mosaic--ceremonia .portfolio-item:nth-child(1):nth-last-child(2),
  .portfolio-mosaic--detalles .portfolio-item:nth-child(1):nth-last-child(2) {
    grid-column: 1;
  }

  .portfolio-mosaic--bodas .portfolio-item:nth-child(2):nth-last-child(1),
  .portfolio-mosaic--preboda .portfolio-item:nth-child(2):nth-last-child(1),
  .portfolio-mosaic--ceremonia .portfolio-item:nth-child(2):nth-last-child(1),
  .portfolio-mosaic--detalles .portfolio-item:nth-child(2):nth-last-child(1) {
    grid-column: 3;
  }

  .pareja-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 58px 0;
  }

  .hero-fullscreen .hero-inner {
    padding-top: calc(var(--header-h) + clamp(18px, 5vh, 48px));
    padding-bottom: clamp(88px, 12vh, 120px);
  }

  .hero-title {
    font-size: clamp(1.78rem, 7.5vw, 2.65rem);
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .soft-cta {
    padding: 44px 0;
  }

  .testimonials-grid {
    gap: 16px;
    margin-top: 26px;
  }

  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    gap: 16px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .contact-card,
  .form-card,
  .contact-map-card,
  .service-card,
  .seville-copy {
    padding: 24px;
  }
}

/* Pantallas muy estrechas: una columna para legibilidad */
@media (max-width: 360px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }

  #portfolio .portfolio-mosaic--index,
  .portfolio-mosaic,
  .portfolio-mosaic--bodas,
  .portfolio-mosaic--preboda,
  .portfolio-mosaic--ceremonia,
  .portfolio-mosaic--detalles {
    grid-template-columns: 1fr;
  }

  .pareja-gallery {
    grid-template-columns: 1fr;
  }
}

/* —— Revelado al scroll (activo solo con html.reveal-on) —— */
.reveal-delay-1 {
  --reveal-delay: 0.08s;
}

.reveal-delay-2 {
  --reveal-delay: 0.16s;
}

.reveal-delay-3 {
  --reveal-delay: 0.24s;
}

.reveal-delay-4 {
  --reveal-delay: 0.32s;
}

.reveal-delay-5 {
  --reveal-delay: 0.4s;
}

html.reveal-on .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

html.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal,
  html.reveal-on .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tarjetas: hover fino + luz dorada (misma familia que foco en contacto) */
@media (hover: hover) and (pointer: fine) {
  .testimonial-card,
  .story-card,
  .service-card,
  .contact-card,
  .form-card,
  .contact-map-card,
  .seville-copy {
    transition:
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.5s ease;
  }

  .testimonial-card:hover,
  .service-card:hover,
  .contact-card:hover,
  .form-card:hover,
  .contact-map-card:hover,
  .seville-copy:hover {
    transform: translateY(-4px);
    border-color: var(--glow-ring);
    z-index: 1;
    box-shadow:
      0 16px 44px rgba(25, 20, 16, 0.1),
      0 0 0 1px var(--glow-ring),
      0 0 32px var(--glow-soft),
      0 12px 48px var(--glow-ambient);
  }

  .story-card:hover {
    transform: translateY(-4px);
    z-index: 1;
    box-shadow:
      0 16px 44px rgba(25, 20, 16, 0.1),
      0 0 0 1px rgba(201, 162, 39, 0.22),
      0 0 32px var(--glow-soft),
      0 12px 48px var(--glow-ambient);
  }

  .story-card:hover::after {
    filter: brightness(1.12) saturate(1.06);
  }

  .portfolio-item,
  .pareja-photo {
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.5s ease;
  }

  .portfolio-item:hover,
  .pareja-photo:hover {
    transform: translateY(-3px);
    z-index: 1;
    box-shadow:
      0 14px 40px rgba(25, 20, 16, 0.12),
      0 0 0 1px rgba(201, 162, 39, 0.22),
      0 0 28px var(--glow-soft),
      0 10px 44px var(--glow-ambient);
  }

  .portfolio-item:hover::after,
  .image-block:hover::after,
  .seville-visual:hover::after,
  .pareja-photo:hover::after {
    filter: brightness(1.12) saturate(1.06);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .service-card,
  .contact-card,
  .form-card,
  .contact-map-card,
  .seville-copy,
  .portfolio-item,
  .pareja-photo,
  .story-card {
    transition: box-shadow 0.4s ease;
  }

  .testimonial-card:hover,
  .service-card:hover,
  .contact-card:hover,
  .form-card:hover,
  .contact-map-card:hover,
  .seville-copy:hover {
    transform: none;
    border-color: var(--glow-ring);
    box-shadow:
      0 12px 36px rgba(25, 20, 16, 0.08),
      0 0 0 1px var(--glow-ring),
      0 0 28px var(--glow-soft),
      0 8px 40px var(--glow-ambient);
  }

  .story-card:hover {
    transform: none;
    box-shadow:
      0 12px 36px rgba(25, 20, 16, 0.08),
      0 0 0 1px rgba(201, 162, 39, 0.22),
      0 0 28px var(--glow-soft),
      0 8px 40px var(--glow-ambient);
  }

  .story-card:hover::after {
    filter: brightness(1.1) saturate(1.04);
  }

  .portfolio-item:hover,
  .pareja-photo:hover {
    transform: none;
    box-shadow:
      0 12px 32px rgba(25, 20, 16, 0.1),
      0 0 0 1px rgba(201, 162, 39, 0.2),
      0 0 24px var(--glow-soft),
      0 8px 36px var(--glow-ambient);
  }

  .portfolio-item:hover::after,
  .image-block:hover::after,
  .seville-visual:hover::after,
  .pareja-photo:hover::after {
    filter: brightness(1.1) saturate(1.04);
  }
}

/* Nota SEO discreta al cierre del main (home) */
.copy-seo-closing {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px 40px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
}

.testimonials-footnote {
  text-align: center;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

#sevilla .seville-en {
  font-size: 0.88rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* —— Asistente: solo el globo/panel; sin capa sobre la página ni atenuar el fondo —— */
.asistente-root {
  position: fixed;
  z-index: 60;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
}

/* Mismo bottom + margen lateral que .wa-float (espejo: derecha = WA izquierda) */
.asistente-stack {
  --asistente-float-bottom: var(--float-margin-bottom);
  --asistente-float-side: var(--float-margin-right);
  position: fixed;
  z-index: 1;
  bottom: var(--asistente-float-bottom);
  right: var(--asistente-float-side);
  left: auto;
  top: auto;
  /* 100% del viewport en fixed (evita 100vw > pantalla visible en iOS) */
  width: min(
    calc(100% - var(--float-margin-left) - var(--float-margin-right)),
    380px
  );
  max-width: min(
    calc(100% - var(--float-margin-left) - var(--float-margin-right)),
    380px
  );
  min-height: 58px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-sizing: border-box;
}

.asistente-fab,
.asistente-panel {
  pointer-events: auto;
}

.asistente-root.is-visible .asistente-stack {
  opacity: 1;
  visibility: visible;
}

.asistente-fab {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid var(--gold-rich);
  background: #fffefd;
  color: var(--gold-rich);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(25, 20, 16, 0.12);
}

.asistente-fab:hover {
  box-shadow: 0 10px 32px rgba(25, 20, 16, 0.16);
}

.asistente-fab:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 5px rgba(201, 162, 39, 0.45);
}

.asistente-fab__icon {
  display: block;
}

.asistente-panel {
  position: absolute;
  bottom: calc(58px + 14px);
  right: 0;
  left: auto;
  width: min(
    calc(100% - var(--float-margin-left) - var(--float-margin-right)),
    380px
  );
  max-width: 100%;
  max-height: min(520px, 70vh);
  display: flex;
  flex-direction: column;
  background: #fffefd;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(25, 20, 16, 0.14);
  overflow: hidden;
  box-sizing: border-box;
}

/* El atributo [hidden] debe poder ocultar el panel (display:flex del panel lo anulaba en algunos navegadores) */
.asistente-panel[hidden] {
  display: none !important;
}

.asistente-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.asistente-panel__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-rich);
  letter-spacing: 0.02em;
}

.asistente-panel__close {
  position: relative;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.asistente-panel__close:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--text);
}

.asistente-panel__messages {
  flex: 1;
  min-height: 200px;
  max-height: 340px;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.asistente-msg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: min(92%, 288px);
}

.asistente-msg--bot {
  align-self: flex-start;
  align-items: flex-start;
}

.asistente-msg--bot.asistente-msg--wide {
  max-width: 100%;
  width: 100%;
}

.asistente-msg--user {
  align-self: flex-end;
  align-items: flex-end;
}

.asistente-msg__name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 2px;
}

.asistente-msg--user .asistente-msg__name {
  text-align: right;
}

.asistente-msg__text {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.asistente-msg--bot .asistente-msg__text {
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-bottom-left-radius: 6px;
  white-space: pre-line;
}

.asistente-msg--user .asistente-msg__text {
  text-align: left;
  white-space: pre-line;
  background: rgba(31, 26, 23, 0.07);
  border: 1px solid rgba(31, 26, 23, 0.1);
  border-bottom-right-radius: 6px;
  color: var(--text);
}

.asistente-msg--bot .asistente-msg__name {
  color: var(--gold-rich);
}

.asistente-msg--user .asistente-msg__name {
  color: var(--text);
}

.asistente-msg__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.asistente-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(255, 254, 252, 0.96);
  box-shadow: 0 4px 14px rgba(25, 20, 16, 0.06);
}

.asistente-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 200px;
  overflow: hidden;
  background: rgba(31, 26, 23, 0.06);
}

.asistente-card__media .asistente-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.asistente-card__img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.95);
}

.asistente-card__body {
  padding: 10px 12px 8px;
}

.asistente-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-rich);
  margin-bottom: 4px;
  line-height: 1.3;
}

.asistente-card__text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.asistente-card__link {
  display: inline-block;
  margin: 0 12px 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-rich);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.asistente-card__link:hover {
  color: var(--text);
}

.asistente-msg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.asistente-msg__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: #fffefd;
  color: var(--gold-rich);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.asistente-msg__action-btn:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--text);
}

.asistente-msg__typing-wrap {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 4px;
  font-style: italic;
  color: rgba(111, 101, 94, 0.92);
}

.asistente-typing-dots {
  display: inline-flex;
  gap: 1px;
}

.asistente-typing-dots span {
  display: inline-block;
  width: 0.4em;
  text-align: center;
}

.asistente-typing-dots.asistente-typing-dots--pulse span {
  animation: asistenteTypingPulse 0.65s ease-in-out infinite;
}

.asistente-typing-dots.asistente-typing-dots--pulse span:nth-child(1) {
  animation-delay: 0s;
}

.asistente-typing-dots.asistente-typing-dots--pulse span:nth-child(2) {
  animation-delay: 0.12s;
}

.asistente-typing-dots.asistente-typing-dots--pulse span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes asistenteTypingPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.asistente-panel__form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(31, 26, 23, 0.08);
  flex-shrink: 0;
}

.asistente-panel__input {
  flex: 1;
  align-self: stretch;
  min-width: 0;
  min-height: 2.75rem;
  max-height: 8.5rem;
  padding: 10px 12px;
  border: 1px solid rgba(31, 26, 23, 0.12);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  font-family: inherit;
  background: #fffefd;
  color: var(--text);
  resize: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* iOS Safari: evita zoom/reflow al enfocar inputs con fuente <16px */
@media (max-width: 1023px) {
  .asistente-panel__input {
    font-size: 16px;
  }
}

.asistente-panel__input::placeholder {
  color: rgba(111, 101, 94, 0.65);
}

.asistente-panel__input:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.12);
}

.asistente-panel__send {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: #fffefd;
  color: var(--gold-rich);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.asistente-panel__send:hover:not(:disabled) {
  background: rgba(201, 162, 39, 0.1);
}

.asistente-panel__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  /* Globo = solo 58×58, mismo anclaje que WhatsApp pero a la derecha */
  .asistente-root:not(.is-panel-open).is-visible .asistente-stack,
  .asistente-root:not(.is-panel-open) .asistente-stack {
    width: 58px;
    max-width: 58px;
    min-height: 58px;
    height: 58px;
  }

  /* Panel cerrado: hoja encima del globo */
  .asistente-panel {
    left: 0;
    right: 0;
    bottom: calc(58px + 14px);
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 22px 22px 0 0;
    max-height: min(75vh, 560px);
  }
}

/*
 * Panel abierto (móvil/tablet): .asistente-stack = fixed a todo el viewport con padding interior.
 * - inset:0 + padding evita que el bloque quede bajo la barra de Safari cuando safe-area=0.
 * - Mismos laterales que WhatsApp (--float-margin-*) + tope de altura dvh/svh (viewport visible).
 */
@media (max-width: 1023px) {
  .asistente-root.is-panel-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    z-index: 60;
  }

  .asistente-root.is-panel-open .asistente-stack {
    position: fixed !important;
    z-index: 61 !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100svh !important;
    padding-top: var(--asistente-sheet-pad-top) !important;
    padding-bottom: max(var(--float-margin-bottom), env(safe-area-inset-bottom, 0px)) !important;
    padding-left: var(--asistente-sheet-pad-inline) !important;
    padding-right: var(--asistente-sheet-pad-inline) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    pointer-events: auto !important;
  }

  @supports (height: 100dvh) {
    .asistente-root.is-panel-open .asistente-stack {
      max-height: 100dvh !important;
    }
  }

  .asistente-root.is-panel-open .asistente-panel {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    height: auto;
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(25, 20, 16, 0.18);
    overflow: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
  }

  .asistente-root.is-panel-open .asistente-panel__head {
    flex-shrink: 0;
    min-width: 0;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    /* El título no debe ganar min-content y empujar la X fuera (overflow:hidden del panel la cortaba) */
    overflow: visible;
  }

  .asistente-root.is-panel-open .asistente-panel__title {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .asistente-root.is-panel-open .asistente-panel__close {
    flex: 0 0 auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-left: auto;
    z-index: 10;
    color: var(--text);
    background: rgba(255, 253, 249, 0.98);
    border: 1px solid rgba(201, 162, 39, 0.45);
    box-shadow: 0 1px 3px rgba(25, 20, 16, 0.08);
  }

  .asistente-root.is-panel-open .asistente-panel__messages {
    flex: 1 1 0%;
    min-height: 0 !important;
    min-width: 0;
    max-height: none !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .asistente-root.is-panel-open .asistente-panel__form {
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
    padding: 12px 12px 14px;
    gap: 6px;
  }

  .asistente-root.is-panel-open .asistente-panel__send {
    padding: 10px 10px;
    font-size: 0.82rem;
  }

  .asistente-root.is-panel-open .asistente-fab {
    display: none;
  }

  /* Mensajes: sin min-width:auto del flex que ensancha el panel fuera de pantalla */
  .asistente-root.is-panel-open .asistente-msg {
    max-width: 100%;
    min-width: 0;
  }

  .asistente-root.is-panel-open .asistente-msg__cards {
    min-width: 0;
    max-width: 100%;
  }

  .asistente-root.is-panel-open .asistente-card {
    max-width: 100%;
    min-width: 0;
  }
}

/* —— Modal de cookies (escritorio) —— */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.28s ease;
  font-family: Inter, system-ui, sans-serif;
}

.cookie-consent.is-visible {
  opacity: 1;
}

.cookie-consent__bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(20px, 3vw, 34px);
  background: rgba(15, 13, 12, 0.96);
  border-top: 1px solid rgba(255, 253, 249, 0.16);
  box-shadow: 0 -12px 28px rgba(8, 7, 6, 0.22);
}

.cookie-consent__bar-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 253, 249, 0.88);
  max-width: 74ch;
}

.cookie-consent__bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent__bar .cookie-consent__btn.btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.cookie-consent__bar .cookie-consent__btn.secondary {
  color: rgba(255, 253, 249, 0.92);
  border-color: rgba(255, 253, 249, 0.3);
  background: transparent;
}

.cookie-consent__bar .cookie-consent__btn.secondary:hover {
  background: rgba(255, 253, 249, 0.1);
}

.cookie-consent__bar .cookie-consent__btn.primary {
  background: #fffefd;
  color: #16110e;
  border-color: #fffefd;
}

.cookie-consent__bar .cookie-consent__btn.primary:hover {
  background: #fff;
}

.cookie-consent__modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.cookie-consent.is-modal-open .cookie-consent__modal {
  display: flex;
}

.cookie-consent__box {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88vh, 720px);
  border-radius: 24px;
  overflow: hidden;
  background: #f7f5f2;
  border: 1px solid rgba(31, 26, 23, 0.12);
  box-shadow: 0 30px 70px rgba(8, 7, 6, 0.38);
}

.cookie-consent__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(31, 26, 23, 0.7);
  color: rgba(255, 253, 249, 0.9);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}

.cookie-consent__close:hover {
  background: rgba(31, 26, 23, 0.9);
}

.cookie-consent__layout {
  display: grid;
  grid-template-columns: minmax(250px, 29%) 1fr;
  min-height: min(620px, 88vh);
}

.cookie-consent__side {
  background: #f0eeeb;
  border-right: 1px solid rgba(31, 26, 23, 0.08);
  padding: 34px 22px 24px;
}

.cookie-consent__logo {
  width: min(170px, 78%);
  height: auto;
  margin-bottom: 26px;
}

.cookie-consent__menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-consent__menu-item {
  text-align: left;
  border: 1px solid transparent;
  background: #e8e6e3;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(31, 26, 23, 0.84);
  cursor: pointer;
  transition: 0.2s ease;
}

.cookie-consent__menu-item:hover {
  background: #e0ddd9;
}

.cookie-consent__menu-item.is-active {
  background: #fffefd;
  border-color: rgba(201, 162, 39, 0.28);
  color: var(--text);
}

.cookie-consent__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cookie-consent__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 40px clamp(24px, 3vw, 38px) 26px;
}

.cookie-consent__section {
  display: none;
}

.cookie-consent__section.is-active {
  display: block;
}

.cookie-consent__section-title {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  line-height: 1.05;
  color: var(--text);
}

.cookie-consent__section-body p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}

.cookie-consent__section-body a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__section-body a:hover {
  color: var(--text);
}

.cookie-consent__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(31, 26, 23, 0.1);
  padding: 16px clamp(24px, 3vw, 38px) 18px;
  background: #f7f5f2;
}

.cookie-consent__btn.btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cookie-consent__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  user-select: none;
}

.cookie-consent__toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-consent__toggle-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(31, 26, 23, 0.18);
  position: relative;
  transition: background 0.2s ease;
}

.cookie-consent__toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.cookie-consent__toggle-input:checked + .cookie-consent__toggle-ui {
  background: var(--gold-rich);
}

.cookie-consent__toggle-input:checked + .cookie-consent__toggle-ui::after {
  transform: translateX(20px);
}

.cookie-consent__toggle-text {
  font-size: 0.92rem;
  color: var(--text);
}

body.cookies-modal-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .cookie-consent {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: opacity 0.2s ease;
  }
}

/* —— Páginas legales —— */
.legal-main {
  padding-top: calc(var(--header-h) + 24px);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 36px);
}

.legal-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.legal-card h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  padding-left: 1.2rem;
}
