/* Crest — Page-specific styles */

/* ====== NAVIGATION ====== */
.nav {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--crest-black);
  padding: 18px 48px;
}

.nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.nav-inner a {
  text-align: center;
  color: var(--crest-cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 10px 0;
  border-left: 1px solid var(--crest-line);
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  position: relative;
}

.nav-inner a:first-child {
  border-left: none;
}

.nav-inner a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--crest-gold);
  transform: translateX(-50%);
  transition: width 0.4s var(--ease-out);
}

.nav-inner a:hover {
  color: var(--crest-gold);
}

.nav-inner a:hover::after {
  width: 60%;
}

/* Top dark strip + language toggle */
.top-strip {
  background: var(--crest-black);
  padding: 10px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--crest-line-soft);
}

.top-strip .left-meta {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--crest-gold);
  text-transform: uppercase;
  opacity: 0.75;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}

.lang-toggle button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--crest-cream);
  opacity: 0.5;
  padding: 4px 6px;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: all 0.3s;
}

.lang-toggle button.active {
  opacity: 1;
  color: var(--crest-gold);
}

.lang-toggle .sep {
  opacity: 0.3;
  color: var(--crest-cream);
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 720px;
}

/* Shared hero image - uses real mountain photo */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  background: var(--crest-black-2);
}

.hero-bg-photo {
  background-image:
    linear-gradient(180deg, rgba(10, 6, 9, 0) 40%, rgba(10, 6, 9, 0.35) 100%),
    url("../assets/mountain-header.jpg");
  background-size: cover;
  background-position: center;
}

/* Hero video — overlay sobre la imagen de la montaña, fade in/out */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  background: var(--crest-black-2);
}

.hero-video.is-playing {
  opacity: 1;
}

.hero-bg-parallax {
  animation: slow-pan 30s var(--ease-in-out) infinite alternate;
}

/* --- Hero v1: Reference (card w/ logo centered) --- */
.hero-v1 {
  min-height: 520px;
  padding: 60px 48px 0;
  position: relative;
  display: block;
}

.hero-v1 .hero-v1-logo-float {
  position: absolute;
  z-index: 3;
  top: calc(50% - 30px);
  right: calc(6% + 200px);
  transform: translateY(-50%);
  height: 173px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(10, 6, 9, 0.35));
}

.hero-v1 .bienvenido {
  position: absolute;
  z-index: 5;
  bottom: 62px;
  left: 48px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 3.2vw, 52px);
  letter-spacing: 0.38em;
  color: var(--crest-black);
  text-transform: uppercase;
  padding-left: 0.38em;
  line-height: 1;
  text-shadow:
    0 0 14px rgba(245, 237, 224, 0.35),
    0 0 4px rgba(245, 237, 224, 0.45);
}

/* --- Hero v2: Full-bleed with centered title --- */
.hero-v2 {
  min-height: 720px;
  padding: 120px 48px 180px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-v2 .content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-v2 .eyebrow-top {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.56em;
  color: var(--crest-gold);
  text-transform: uppercase;
  padding-left: 0.56em;
  margin-bottom: 28px;
}

.hero-v2 .big-mark-img {
  display: block;
  margin: 0 auto 24px;
  height: 56px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.hero-v2 .hero-v2-logo {
  display: block;
  margin: 0 auto;
  height: clamp(90px, 11vw, 160px);
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.hero-v2 .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--crest-gold-soft);
  margin-top: 24px;
  max-width: 640px;
}

.hero-v2 .scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--crest-cream);
  text-transform: uppercase;
}

.hero-v2 .scroll-cue .line {
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, var(--crest-gold), transparent);
  animation: scroll-pulse 2.2s var(--ease-in-out) infinite;
  transform-origin: top;
}

@keyframes scroll-pulse {

  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.4;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* --- Hero v3: Video-parallax style --- */
.hero-v3 {
  min-height: 780px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 0 120px;
}

@keyframes slow-pan {
  from {
    background-size: 105% auto;
    background-position: 48% center;
  }

  to {
    background-size: 115% auto;
    background-position: 52% center;
  }
}

.hero-v3 .video-chip {
  position: absolute;
  top: 32px;
  right: 48px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 6, 9, 0.7);
  border: 1px solid var(--crest-gold);
  padding: 8px 16px;
  color: var(--crest-gold);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.hero-v3 .video-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crest-gold);
  animation: pulse 2s var(--ease-in-out) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.hero-v3 .content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}

.hero-v3 h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(72px, 9vw, 148px);
  letter-spacing: 0.18em;
  color: var(--crest-cream);
  margin: 0;
  padding-left: 0.18em;
  line-height: 0.92;
}

.hero-v3 h1 em {
  font-style: italic;
  color: var(--crest-gold);
  letter-spacing: 0.04em;
  display: block;
  font-size: 0.6em;
  padding-left: 0.5em;
}

.hero-v3 .sidecol {
  max-width: 320px;
  padding: 0 0 24px 28px;
  border-left: 1px solid var(--crest-gold);
}

.hero-v3 .sidecol p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--crest-cream);
  opacity: 0.85;
  margin: 0 0 24px;
}

/* ====== WELCOME BAND (dark burgundy with italic quote + wine glass) ====== */
.welcome-band {
  background: var(--crest-wine-deep);
  padding: 70px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-band .glass-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 150px), -50%);
  width: auto;
  height: 280px;
  opacity: 0.5;
  pointer-events: none;
}

.welcome-band .text {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.7;
  color: var(--crest-cream);
  max-width: 820px;
  margin: 0 auto;
  opacity: 0.95;
}

.welcome-band .corners {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
  color: var(--crest-gold);
}

/* ====== ABOUT US — winecup image as left visual, text right over same band ====== */
.about-section {
  background: #d1d0c9;
  color: var(--crest-wine-deep);
  padding: 0;
  position: relative;
}

.about-composition {
  position: relative;
  width: 100%;
  min-height: 534px;
  display: flex;
  align-items: center;
}

/* Video stage del About — relleno lateral + video centrado */
.about-bg-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background: #d1d0c9;
  /**dcdad4/
  /*d3d2cb*/
  overflow: hidden;
  pointer-events: none;
}

.about-bg-fill {
  background: #d1d0c9;
  min-width: 0;
}

.about-bg-fill--left {
  flex: 0 0 2%;
}

/* pequeño margen izquierdo */
.about-bg-fill--right {
  flex: 1 1 auto;
}

/* absorbe todo lo que sobra */
.about-bg-video {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
  background: #d3d2cb;
}

/* Compatibilidad: por si alguna parte vieja sigue referenciando .about-bg-img */
.about-bg-img {
  display: none;
}

.about-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 80px 40% 1fr 80px;
  gap: 24px;
  align-items: center;
}

.about-wrap .about-spacer {
  display: block;
}

.about-wrap .brace-col {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 220px;
  line-height: 0.7;
  color: var(--crest-wine-deep);
  opacity: 0.85;
}

.about-wrap .brace-col.left {
  justify-content: flex-start;
  padding-left: 20px;
}

.about-wrap .brace-col.right {
  justify-content: flex-end;
}

.about-inner-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-self: center;
}

.about-visual {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
}

.wine-divider-img {
  display: block;
  margin: 0 auto 20px;
  height: 54px;
  width: auto;
}

.about-text-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 12px;
  color: var(--crest-wine-deep);
  padding-left: 0.4em;
}

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 20px;
  color: var(--crest-wine-deep);
  padding-left: 0.4em;
}

.about-text .divider-wine {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 14px 0 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--crest-wine-deep);
  text-transform: uppercase;
}

.about-text .divider-wine::before,
.about-text .divider-wine::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--crest-wine-deep);
  opacity: 0.6;
}

.about-text p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.8;
  color: var(--crest-wine-deep);
  opacity: 0.85;
  margin: 0 0 12px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== BRIDE BAND (real photo + chispitas canvas overlay) ====== */
.bride-band {
  color: var(--crest-cream);
  padding: 0;
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background: #16070b;
  isolation: isolate;
}

.bride-magic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bride-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  transform: scale(1) translate3d(0, 0, 0);
  transform-origin: center center;
  transition: transform 1.8s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.bride-band:hover .bride-img {
  transform: scale(1.035) translate3d(-10px, 0, 0);
}

.bride-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bride-band .text-col {
  padding: 56px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.bride-band .text-col p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.8;
  color: var(--crest-cream);
  margin: 0;
  max-width: 520px;
  text-align: left;
}

.bride-band .text-col .kicker {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.4em;
  color: var(--crest-cream);
  text-transform: uppercase;
  opacity: 1;
  margin: 0 0 20px;
  padding-left: 0;
  text-align: left;
}

/* ====== THE PLACE — topographic background + text ====== */
.place-band {
  background: var(--crest-cream);
  color: var(--crest-wine-deep);
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  min-height: 360px;
  overflow: hidden;
}

.place-band .topo-col {
  position: relative;
  background: var(--crest-black);
  overflow: hidden;
  aspect-ratio: 1920 / 447;
  width: 100%;
}

.place-band .place-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center left;
  opacity: 0;
  transform: scale(1.04);
  /* fade rápido (0.6s) para que cada slide tenga ~1.4s de visibilidad pura;
     transform suave (4s) para que el zoom NO se resetee al cambiar slide */
  transition: opacity 0.6s ease, transform 4s ease-out;
  will-change: transform, opacity;
}

.place-band .place-slide.is-active {
  opacity: 1;
  transform: scale(1.10);
  /* el zoom corre lineal durante 6s mientras el slide está activo */
  transition: opacity 0.6s ease, transform 6s linear;
}

.place-band .place-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 6, 9, 0) 65%, rgba(245, 237, 224, 0.5) 100%);
  pointer-events: none;
}

.place-band .place-carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 80px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.place-band .place-dot {
  width: 28px;
  height: 2px;
  border: 0;
  padding: 0;
  background: rgba(10, 6, 9, 0.55);
  cursor: pointer;
  transition: background 0.3s;
}

.place-band .place-dot.is-active {
  background: var(--crest-gold);
}

.place-band .text-col {
  padding: 32px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  background: var(--crest-cream);
}

.place-band .text-col p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.8;
  color: var(--crest-wine-deep);
  opacity: 0.85;
  margin: 0 0 8px;
  max-width: 640px;
  text-align: right;
  padding-right: 0.4em;
  white-space: pre-line;
}

.place-band .text-col h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.4em;
  color: var(--crest-wine-deep);
  text-transform: uppercase;
  margin: 0 0 16px;
  text-align: right;
  padding-left: 0;
  padding-right: 0.4em;
}

/* ====== GALLERY ====== */
.gallery-section {
  background: var(--crest-black);
  padding: 0;
}

.gallery-strip-bottom {
  height: 15px;
  background: var(--crest-cream);
  width: 100%;
}

/* Layout: GRID — regular 4 per row */
.gallery.layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.gallery.layout-grid .g {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

/* Layout: MASONRY — repeating rhythmic pattern over 12 cols */
.gallery.layout-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
}

.gallery.layout-masonry .g {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  grid-column: span 4;
  aspect-ratio: 4/3;
}

/* Repeating 6-block rhythm */
.gallery.layout-masonry .g:nth-child(6n+1) {
  grid-column: span 5;
  grid-row: span 2;
  aspect-ratio: 3/4;
}

.gallery.layout-masonry .g:nth-child(6n+2) {
  grid-column: span 7;
  aspect-ratio: 16/7;
}

.gallery.layout-masonry .g:nth-child(6n+3) {
  grid-column: span 3;
  aspect-ratio: 1;
}

.gallery.layout-masonry .g:nth-child(6n+4) {
  grid-column: span 4;
  aspect-ratio: 1;
}

.gallery.layout-masonry .g:nth-child(6n+5) {
  grid-column: span 4;
  aspect-ratio: 4/3;
}

.gallery.layout-masonry .g:nth-child(6n+6) {
  grid-column: span 4;
  aspect-ratio: 4/3;
}

/* Layout: CARRUSEL */
.gallery.layout-carousel {
  position: relative;
  padding: 0;
}

.gallery.layout-carousel .track-wrap {
  overflow: hidden;
}

.gallery.layout-carousel .track {
  display: flex;
  gap: 2px;
  transition: transform 0.9s var(--ease-out);
}

.gallery.layout-carousel .slide {
  flex: 0 0 55%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}

.gallery.layout-carousel .controls {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.gallery.layout-carousel .ctrl {
  width: 54px;
  height: 54px;
  border: 1px solid var(--crest-gold);
  background: rgba(10, 6, 9, 0.55);
  color: var(--crest-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.gallery.layout-carousel .ctrl:hover {
  background: var(--crest-gold);
  color: var(--crest-black);
}

.gallery.layout-carousel .counter {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 5;
  background: rgba(10, 6, 9, 0.7);
  padding: 8px 16px;
  border: 1px solid var(--crest-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--crest-gold);
  letter-spacing: 0.14em;
  backdrop-filter: blur(8px);
}

.gallery.layout-carousel .counter .sep {
  opacity: 0.5;
  margin: 0 6px;
}

/* Shared gallery item styling */
.gallery .g,
.gallery .slide {
  background: var(--crest-black-2);
}

.gallery .g>img,
.gallery .slide>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(0.92);
}

.gallery .g:hover>img,
.gallery .slide:hover>img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.gallery .g::after,
.gallery .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(62, 10, 21, 0);
  transition: background 0.4s var(--ease-out);
  pointer-events: none;
}

.gallery .g:hover::after,
.gallery .slide:hover::after {
  background: rgba(62, 10, 21, 0.35);
}

.gallery .caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  color: var(--crest-cream);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out);
}

.gallery .g:hover .caption,
.gallery .slide:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery title */
.gallery-title {
  padding: 80px 48px 48px;
  text-align: center;
  background: var(--crest-black);
}

.gallery-title h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--crest-cream);
  margin: 0;
  padding-left: 0.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.gallery-title h2::before,
.gallery-title h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--crest-gold);
  opacity: 0.9;
  max-width: 38%;
}

.gallery-title .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--crest-gold);
  margin-top: 12px;
}

/* ====== CTA BAND (small wine strip before contact) ====== */
.cta-strip {
  background: var(--crest-wine);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== CONTACT / FOOTER ====== */
.contact-section {
  background: var(--crest-black);
  padding: 72px 48px 48px;
  color: var(--crest-cream);
}

.contact-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.contact-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.contact-head .label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.5em;
  color: var(--crest-gold);
  text-transform: uppercase;
  padding-left: 0.5em;
}

.contact-head p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.8;
  color: var(--crest-cream);
  opacity: 0.8;
  margin: 0;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crest-gold);
  font-weight: 500;
  opacity: 0.8;
}

.field input,
.field select,
.field textarea {
  background: var(--crest-black-2);
  border: 1px solid var(--crest-line);
  color: var(--crest-cream);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  transition: all 0.3s var(--ease-out);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--crest-gold);
  background: var(--crest-black);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--crest-gold) 50%),
    linear-gradient(135deg, var(--crest-gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field select option {
  background: var(--crest-black);
}

.field-full {
  grid-column: 1 / -1;
}

.contact-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Contact chips with braces (the { phone } { whatsapp } pattern) */
.contact-chips {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--crest-line);
  border-bottom: 1px solid var(--crest-line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.contact-chips .b {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 72px;
  line-height: 1;
  color: var(--crest-gold);
  flex-shrink: 0;
}

.contact-chips .chip {
  color: var(--crest-cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding: 14px 0;
  transition: color 0.3s var(--ease-out);
  white-space: nowrap;
}

.contact-chips .chip:hover {
  color: var(--crest-gold);
}

.contact-chips .chip-num {
  letter-spacing: 0.2em;
}

.contact-chips .wa-icon-center {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.back-home {
  display: block;
  text-align: center;
  margin: 36px auto 0;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.4em;
  color: var(--crest-gold);
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 0;
  padding-left: 0.4em;
  position: relative;
  transition: letter-spacing 0.4s var(--ease-out);
}

.back-home:hover {
  letter-spacing: 0.5em;
}

.back-home::before {
  content: "↑";
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--crest-gold);
  animation: nudge-up 2.4s var(--ease-in-out) infinite;
}

@keyframes nudge-up {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
  }

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

.footer-bottom {
  max-width: 900px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--crest-line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--crest-cream);
  opacity: 0.5;
}

.footer-bottom .socials {
  display: flex;
  gap: 16px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: var(--crest-gold);
  opacity: 1;
}

/* ====== TWEAKS PANEL ====== */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  background: rgba(10, 6, 9, 0.97);
  border: 1px solid var(--crest-gold);
  color: var(--crest-cream);
  padding: 22px;
  min-width: 280px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  backdrop-filter: blur(12px);
  font-family: var(--font-body);
  font-size: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.tweaks-panel .tp-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 2px;
  color: var(--crest-gold);
  padding-left: 0.32em;
}

.tweaks-panel .tp-sub {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 18px;
}

.tweaks-panel .tp-group {
  margin-bottom: 16px;
}

.tweaks-panel .tp-group:last-child {
  margin-bottom: 0;
}

.tweaks-panel .tp-group-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crest-gold);
  margin-bottom: 8px;
}

.tweaks-panel .tp-options {
  display: grid;
  gap: 4px;
}

.tweaks-panel .tp-opt {
  padding: 9px 12px;
  border: 1px solid var(--crest-line-soft);
  background: transparent;
  color: var(--crest-cream);
  font-family: inherit;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tweaks-panel .tp-opt:hover {
  border-color: var(--crest-gold);
}

.tweaks-panel .tp-opt.active {
  background: var(--crest-gold);
  color: var(--crest-black);
  border-color: var(--crest-gold);
}


/* =====================================================================
   RESPONSIVE — Tablet ≤1024px / Mobile ≤768px / Phone ≤480px
   Todo añadido al final para no afectar la versión desktop.
   ===================================================================== */

html,
body {
  overflow-x: hidden;
}

/* ---------- TABLET (≤1024px) ---------- */
@media (max-width: 1024px) {
  .page-frame {
    padding: 14px;
  }

  .top-strip {
    padding: 10px 24px;
  }

  .top-strip .left-meta {
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .hero-v1 {
    padding: 40px 24px 0;
    min-height: 460px;
  }

  .hero-v1 .hero-v1-logo-float {
    right: 50%;
    top: 38%;
    transform: translate(50%, -50%);
    height: 140px;
  }

  .hero-v1 .bienvenido {
    left: 24px;
    bottom: 80px;
    font-size: clamp(26px, 4vw, 38px);
  }

  .nav {
    padding: 14px 24px;
  }

  .nav-inner a {
    font-size: 13px;
    letter-spacing: 0.24em;
    padding: 8px 0;
  }

  .welcome-band {
    padding: 56px 32px;
  }

  .about-wrap {
    grid-template-columns: 56px 1fr 56px;
    grid-template-areas: "bL center bR";
    padding: 56px 28px;
    gap: 18px;
  }

  .about-wrap .about-spacer {
    display: none;
  }

  .about-wrap .brace-col.left {
    grid-area: bL;
    padding-left: 8px;
  }

  .about-wrap .brace-col.right {
    grid-area: bR;
  }

  .about-inner-centered {
    grid-area: center;
  }

  .about-wrap .brace-col {
    font-size: 160px;
  }

  .bride-band {
    grid-template-columns: 1fr;
    min-height: 420px;
  }

  .bride-band .bride-img {
    object-position: center top;
  }

  .bride-band .text-col {
    padding: 48px 32px;
    background: linear-gradient(180deg, rgba(10, 6, 9, 0.55) 0%, rgba(10, 6, 9, 0.85) 100%);
  }

  .place-band .text-col {
    padding: 28px 40px;
  }

  .place-band .place-carousel-dots {
    left: 40px;
  }

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

  .gallery-title {
    padding: 60px 32px 36px;
  }

  .contact-section {
    padding: 56px 32px 36px;
  }

  .contact-chips {
    gap: 22px;
  }
}

/* ---------- MOBILE (≤768px) ---------- */
@media (max-width: 768px) {
  .page-frame {
    padding: 8px;
  }

  .top-strip {
    padding: 8px 14px;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }

  .top-strip .left-meta {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .hero {
    min-height: 560px;
  }

  .hero-v1 {
    min-height: 560px;
    padding: 24px 16px 92px;
    /* 92px = espacio para el nav absolute al fondo */
  }

  .hero-bg-photo {
    background-position: center 30%;
  }

  .hero-v1 .hero-v1-logo-float {
    position: absolute;
    top: 22%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    height: 144px;
    /* +20% sobre los 120 anteriores */
    max-width: 82%;
  }

  .hero-v1 .bienvenido {
    position: absolute;
    left: 50%;
    bottom: 120px;
    /* arriba del nav */
    transform: translateX(-50%);
    font-size: 24px;
    letter-spacing: 0.32em;
    color: var(--crest-cream);
    text-shadow: 0 0 18px rgba(10, 6, 9, 0.85), 0 0 6px rgba(10, 6, 9, 0.95);
    white-space: nowrap;
  }

  .nav {
    padding: 10px 12px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
  }

  .nav-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .nav-inner a {
    font-size: 12px;
    letter-spacing: 0.22em;
    padding: 12px 4px;
    border-left: none;
    border-top: 1px solid var(--crest-line);
  }

  .nav-inner a:first-child,
  .nav-inner a:nth-child(2) {
    border-top: none;
  }

  .nav-inner a:nth-child(odd) {
    border-right: 1px solid var(--crest-line);
  }

  .welcome-band {
    padding: 44px 18px;
    overflow: hidden;
  }

  .welcome-band .glass-bg-img {
    height: 200px;
    transform: translate(-50%, -50%);
    opacity: 0.18;
    max-width: 70%;
    object-fit: contain;
  }

  .welcome-band .text {
    font-size: 15px;
    line-height: 1.65;
    padding: 0 4px;
  }

  .about-composition {
    min-height: 0;
    display: block;
  }

  .about-bg-stage {
    opacity: 0.22;
  }

  .about-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .about-bg-fill {
    display: none;
  }

  .about-section {
    background: #d1d0c9;
  }

  .about-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "bL" "center" "bR";
    padding: 44px 20px;
    gap: 6px;
    text-align: center;
    align-items: center;
    justify-items: center;
  }

  .about-wrap .about-spacer {
    display: none;
  }

  .about-wrap .brace-col {
    font-size: 110px;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 0.8;
    width: 100%;
  }

  .about-wrap .brace-col.left {
    grid-area: bL;
  }

  .about-wrap .brace-col.right {
    grid-area: bR;
  }

  .about-inner-centered {
    grid-area: center;
    padding: 8px 0;
    width: 100%;
    max-width: 100%;
  }

  .about-text-title {
    font-size: 26px;
    letter-spacing: 0.32em;
  }

  .about-text {
    width: 100%;
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 100%;
    padding: 0 4px;
  }

  .bride-band {
    min-height: 380px;
    grid-template-columns: 1fr;
  }

  .bride-band .text-col {
    padding: 40px 22px;
    background: linear-gradient(180deg, rgba(10, 6, 9, 0.45) 0%, rgba(10, 6, 9, 0.85) 100%);
  }

  .bride-band .text-col .kicker {
    font-size: 26px;
    letter-spacing: 0.32em;
  }

  .bride-band .text-col p {
    font-size: 15px;
    line-height: 1.7;
  }

  .place-band {
    grid-template-columns: 1fr;
  }

  .place-band .topo-col {
    aspect-ratio: 4/3;
    width: 100%;
  }

  .place-band .place-carousel-dots {
    left: 20px;
    bottom: 16px;
  }

  .place-band .text-col {
    padding: 32px 22px;
    align-items: center;
  }

  .place-band .text-col h2 {
    font-size: 26px;
    letter-spacing: 0.32em;
    text-align: center;
    padding-right: 0;
    padding-left: 0.32em;
    margin-bottom: 14px;
  }

  .place-band .text-col p {
    text-align: center !important;
    font-size: 16px;
    line-height: 1.7;
    padding-right: 0;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
  }

  .gallery-title {
    padding: 48px 20px 28px;
  }

  .gallery-title h2 {
    font-size: clamp(28px, 7vw, 36px);
    letter-spacing: 0.3em;
    gap: 16px;
    padding-left: 0.3em;
  }

  .gallery-title h2::before,
  .gallery-title h2::after {
    max-width: 24%;
  }

  .gallery-title .sub {
    font-size: 13px;
  }

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

  .gallery .caption {
    left: 10px;
    bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.2em;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact-section {
    padding: 48px 18px 28px;
  }

  .contact-head .label {
    font-size: 18px;
    letter-spacing: 0.4em;
    padding-left: 0.4em;
  }

  .contact-head p {
    font-size: 15px;
    line-height: 1.7;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .field {
    width: 100%;
    max-width: 100%;
  }

  .contact-submit {
    justify-content: stretch;
  }

  .contact-submit .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }

  .contact-chips {
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 24px 0;
    margin-top: 32px;
  }

  .contact-chips .b {
    font-size: 48px;
  }

  .contact-chips .chip {
    font-size: 12px;
    letter-spacing: 0.24em;
    padding: 8px 0;
    width: 100%;
    text-align: center;
  }

  .contact-chips .chip-num {
    letter-spacing: 0.16em;
  }

  .contact-chips .wa-icon-center {
    width: 36px;
    height: 36px;
  }

  .back-home {
    font-size: 13px;
    letter-spacing: 0.32em;
    padding-left: 0.32em;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    font-size: 10px;
    margin-top: 28px;
  }

  .footer-bottom .socials {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tweaks-panel {
    bottom: 12px;
    right: 12px;
    left: 12px;
    min-width: 0;
    max-height: 60vh;
    padding: 16px;
  }
}

/* ---------- PHONE CHICO (≤480px) ---------- */
@media (max-width: 480px) {
  .hero-v1 .hero-v1-logo-float {
    height: 120px;
    top: 26%;
  }

  .hero-v1 .bienvenido {
    bottom: 116px;
    font-size: 21px;
    letter-spacing: 0.28em;
  }

  .nav-inner a {
    font-size: 11px;
    letter-spacing: 0.18em;
    padding: 11px 2px;
  }

  .welcome-band {
    padding: 36px 14px;
  }

  .welcome-band .text {
    font-size: 14px;
  }

  .about-wrap {
    padding: 36px 14px;
  }

  .about-wrap .brace-col {
    font-size: 92px;
  }

  .about-text-title {
    font-size: 22px;
    letter-spacing: 0.28em;
  }

  .bride-band .text-col {
    padding: 36px 16px;
  }

  .bride-band .text-col .kicker {
    font-size: 22px;
  }

  .place-band .text-col {
    padding: 28px 16px;
  }

  .place-band .text-col h2 {
    font-size: 22px;
    letter-spacing: 0.28em;
  }

  .gallery-title {
    padding: 40px 14px 22px;
  }

  .contact-section {
    padding: 40px 14px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}