/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --bg:           #0d0f0f;
  --surface:      #161a1a;
  --accent:       #323E41;
  --accent-light: #8fa8ad;
  --text:         #f0ece6;
  --muted:        #6b7a7c;
  --border:       rgba(240, 236, 230, 0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --section-py: 90px;
}

/* ─── BASE ───────────────────────────────────────────────── */
html { background: var(--bg); color: var(--text); }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, padding 0.4s ease;
}

.header.scrolled {
  background: rgba(13, 15, 15, 0.92);
  backdrop-filter: blur(12px);
  padding: 16px 32px;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Fallback texto si no hay logo */
.header__logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

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

.header__cta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(240,236,230,0.3);
  padding: 10px 22px;
  transition: background 0.3s, border-color 0.3s;
}

.header__cta:hover {
  background: rgba(240,236,230,0.08);
  border-color: rgba(240,236,230,0.6);
}

/* ─── HERO CAROUSEL ──────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  /* FIX: opacidad reducida en las fotos para que el texto se destaque */
  filter: brightness(0.55);
}

.hero__slide.active { opacity: 1; }

.hero__slide:nth-child(1) {
  background-image: url('../images/hero-1.jpg');
  background-color: #1c2428;
}
.hero__slide:nth-child(2) {
  background-image: url('../images/hero-2.jpg');
  background-color: #202426;
}
.hero__slide:nth-child(3) {
  background-image: url('../images/hero-3.jpg');
  background-color: #1a2020;
}
.hero__slide:nth-child(4) {
  background-image: url('../images/hero-4.jpg');
  background-color: #1e2424;
}

/* FIX: overlay más presente para que los textos siempre ganen */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,15,15,0.35) 0%,
    rgba(13,15,15,0.25) 35%,
    rgba(13,15,15,0.7) 100%
  );
  z-index: 1;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

/* Logo en el hero */
.hero__logo {
  width: clamp(300px, 55vw, 600px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 20px rgba(0,0,0,0.5));
}

.hero__tagline {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 12px rgba(0,0,0,0.8);
}

.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(240,236,230,0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero__dot.active {
  background: var(--text);
  transform: scale(1.3);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--muted);
  margin-top: 8px;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ─── SEPARADOR ENTRE CARRUSEL Y GRILLA ─────────────────── */
.separador {
  text-align: center;
  padding: 72px 32px;
  border-top: 1px solid var(--border);
}

.separador p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto;
}

.separador__sub {
  font-size: 0.72rem !important;
  font-style: normal !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin-top: 20px !important;
  font-family: var(--font-body) !important;
  font-weight: 300 !important;
}

/* ─── GRILLA DE FOTOS (GRID FIJO) ───────────────────────── */
.grid-section {
  padding: 4px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 4px;
}

.photo-grid__item {
  overflow: hidden;
  background: var(--surface);
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: brightness(0.85);
  color: transparent;
}

.photo-grid__item:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

/* ─── BODAS ──────────────────────────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-py) 32px;
}

.section__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 48px;
}

.bodas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.boda-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--surface);
  display: block;
}

.boda-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.8s ease, filter 0.8s ease;
  color: transparent;
}

.boda-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.5);
}

.boda-card__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.boda-card:hover .boda-card__info { opacity: 1; }

.boda-card__pareja {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
}

.boda-card__lugar {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: 6px;
}

/* Nombre siempre visible: oculto en desktop (el hover lo muestra), visible en mobile */
.boda-card__nombre-visible {
  display: none;
}

/* ─── SOBRE MÍ ───────────────────────────────────────────── */
.about {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-py) 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image {
  aspect-ratio: 9/16;
  overflow: hidden;
  background: var(--surface);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.9);
  color: transparent;
}

.about__text .section__label { margin-bottom: 24px; }

.about__body {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(240,236,230,0.75);
  margin-top: 24px;
}

.about__body p + p { margin-top: 1.2em; }

/* ─── SERVICIOS ──────────────────────────────────────────── */
.servicios {
  background: var(--surface);
  padding: var(--section-py) 0;
}

.servicios .section {
  padding-top: 0;
  padding-bottom: 0;
}

.servicios__body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(240,236,230,0.75);
  max-width: 680px;
}

.servicios__extras {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}

.servicios__extras strong {
  color: var(--accent-light);
  font-weight: 400;
}

/* ─── TESTIMONIOS ────────────────────────────────────────── */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonio {
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}

.testimonio::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: 16px;
  left: 28px;
  line-height: 1;
}

.testimonio__texto {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(240,236,230,0.7);
  margin-top: 24px;
  font-style: italic;
}

.testimonio__autor {
  margin-top: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* ─── FRASE CENTRAL ──────────────────────────────────────── */
.frase-section {
  padding: var(--section-py) 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.frase-section p {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ─── CONTACTO ───────────────────────────────────────────── */
.contacto {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--section-py) 32px;
  text-align: center;
}

.contacto .section__label { justify-content: center; }
.contacto .section__label::after { display: none; }

.contacto__body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240,236,230,0.65);
  margin-top: 24px;
  margin-bottom: 40px;
}

.contacto__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  padding: 18px 40px;
  transition: background 0.3s, transform 0.2s;
}

.contacto__btn:hover {
  background: #1fba58;
  transform: translateY(-1px);
}

.contacto__btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ─── WHATSAPP FLOTANTE ──────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 20px 12px 14px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, padding 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  max-width: 200px;
}

.wa-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
}

/* En mobile: solo el ícono */
@media (max-width: 600px) {
  .wa-float {
    padding: 14px;
    border-radius: 50%;
    max-width: none;
  }
  .wa-float span { display: none; }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

.footer__copy {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-py: 60px; }

  .header__nav { display: none; }
  .header { padding: 20px 20px; }
  .header.scrolled { padding: 14px 20px; }

  .hero__scroll { display: none; }

  .section { padding: var(--section-py) 20px; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }

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

  .boda-card__info { opacity: 1; }
  .boda-card__nombre-visible { display: none; }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__image { aspect-ratio: 3/4; }

  .testimonios-grid { grid-template-columns: 1fr; }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .separador { padding: 48px 20px; }
}

@media (max-width: 480px) {
  .bodas-grid { grid-template-columns: 1fr; }
  .hero__name { font-size: 3rem; }
}
