:root{
  --primary:#86895d;
  --bg:#bec092;
  --light:#f8fbca;
  --dark:#3f4126;

  --text:#2c2d1d;
  --text-soft:#5f6145;

  --line:rgba(0,0,0,.95);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
}

body{
  position: relative;
  background: #bec092;
  color: #54582f;
}

/* Fondo con imagen */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background: url("img/fondo_abs.jpg") center/cover no-repeat;
  opacity: 0.25;
  z-index: -2;
}

/* Capa para suavizar colores */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(190,192,146,0.85),
    rgba(190,192,146,0.95)
  );
  z-index: -1;
}

/* NAV */
nav{
  position:fixed;
  width:100%;
  top:0;
  padding:18px 8%;
  z-index: 1000;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(190,192,146,.65);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}

nav .btn{
  background:none;
  border:1px solid var(--text-soft);
  color: var(--text-soft); /* ✅ FIX */
  font-size:.95rem;
  letter-spacing:1px;
}

nav .btn:hover{
  color:var(--dark);
}

.logo-img{
  width:90px;
}

.logo{
  width:90px;
}

.menu a{
  margin-left:25px;
  color:white;
  text-decoration:none;
  opacity:.8;
}

.menu a:hover{opacity:1}

/* HERO */
.hero{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:140px 8% 80px;
}

.hero h1{
  font-family:'Playfair Display',serif;
  font-size:3.8rem;
  margin-bottom:20px;
  color:var(--dark);
}

.hero p{
  max-width:600px;
  line-height:1.7;
  color:var(--light);
  margin-bottom:40px;
}

/* BOTONES */
.buttons{
  display:flex;
  gap:16px;
}

.btnin{
  animation: bounceSoft 2.5s infinite;
}

@keyframes bounceSoft{
  0%, 100%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-6px);
  }
}

.icono {
  font-size: 2rem;
  margin-bottom: 15px;
}

.pilar h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.pilar p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.5;
}

.btnin{
  margin-left:5px;
  padding:12px 15px;
  border-radius:30px;
  border:1px solid var(--light);
  color:var(--light);
  text-decoration:none;
  font-size:.9rem;
  letter-spacing:.5px;
  transition:.3s;
}

.btnin:hover{
  background:var(--primary);
  color:#fff;
}

.btn{
  margin-left:5px;
  padding:12px 15px;
  border-radius:30px;
  border:1px solid var(--light);
  color:var(--dark);
  text-decoration:none;
  font-size:.9rem;
  letter-spacing:.5px;
  transition:.3s;
}

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

/* FOOTER */
footer{
  text-align:center;
  padding:40px;
  opacity:.5;
}

/* MOBILE */
@media(max-width:700px){
  .hero h1{font-size:2.2rem}
}

/* HERO (segunda definición se mantiene) */
.hero{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
  color:white;
  background: url("img/boda-2.jpg") center/cover no-repeat;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.5);
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:700px;
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  line-height: 1.0;
  color: white;
  text-align: center;
}

.hero h1{
  font-size:4rem;
  font-family:'Playfair Display', serif;
}

.hero p{
  margin-top:15px;
  opacity:.9;
}

/* HIGHLIGHT */
.highlight{
  font-style: italic;
  font-weight: 700;
  letter-spacing: 1.5px;
  position: relative;
  margin-block: 10px;
}

.highlight::after{
  content: "";
  display: block;
  width: 0%;
  height: 1px;
  background: rgba(255,255,255,0.5);
  margin: 8px auto 0;
  animation: lineReveal 1s ease forwards;
  animation-delay: 2s;
}

@keyframes lineReveal{
  to{
    width: 60%;
  }
}

/* ANIMACIÓN TEXTO */
.animate-text span{
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  animation: revealText 1s ease forwards;
}

.animate-text span:nth-child(1){ animation-delay: .3s; }
.animate-text span:nth-child(2){ animation-delay: .8s; }
.animate-text span:nth-child(3){ animation-delay: 1.4s; }

@keyframes revealText{
  to{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* BOTONES */
.buttons{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:center;
}

section{
  padding:140px 8%;
}

/* GALERÍA */
.gallery{
  margin-top:60px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.gallery img{
  width:100%;
  object-fit:cover;
  border-radius:16px;
  transition:.4s;
}

.gallery img:hover{
  transform:scale(1.02);
}

/* CARDS */
.cards{
  margin-top:60px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.cards:hover{
  transform:translateY(-10px);
  box-shadow:0 100px 30px rgba(0,0,0,.08);
}

.card{
  background:var(--light);
  border-radius:18px;
  padding:30px;
  border:1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 40px rgba(0,0,0,.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* ✅ FIX */
  position: relative;
  cursor: pointer;
}

.fancy-border{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 25, 35, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.fancy-border::before{
  content:"";
  position:absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    transparent,
    #f8fbca,
    #86895d,
    transparent 30%
  );
  animation: rotateBorder 4s linear infinite;
  z-index: -1;
}

.fancy-border:hover::before{
  animation-duration: 1.5s;
  filter: brightness(1.3);
}

.fancy-border::after{
  content:"";
  position:absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(248,251,202,0.95);
  z-index: -1;
}

@keyframes rotateBorder{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 25px rgba(0,0,0,.08);
}

/* TITULOS */
.title{
  text-align:center;
  font-family:'Playfair Display',serif;
  font-size:2.4rem;
  color:var(--dark);
}

.title::after{
  content:"";
  width:40px;
  height:2px;
  background:var(--primary);
  display:block;
  margin:10px auto;
}

.scroll-hide{
  transition: all .6s cubic-bezier(.2,.8,.2,1);
}

.hidden-scroll{
  opacity: 0;
  transform: translateY(80px) scale(.95);
  filter: blur(6px);
}

.parallax{
  will-change: transform;
  transition: transform .1s linear;
}

nav{
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s;
  backdrop-filter: blur(10px);
}

.nav-hide{
  transform: translateY(-100%);
  opacity: 0;
}

/* RESPONSIVE */
@media(max-width:768px){

  .hero h1{
    font-size:2.2rem;
  }

  .gallery img{
    height:200px;
  }
}

/* REDES */
.social-float{
  position:fixed;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:14px;
  z-index:9999;
}

.social-float a{
  width:50px;
  height:50px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(20,20,20,0.7);
  backdrop-filter:blur(10px);
  color:white;
  font-size:20px;
  box-shadow:0 10px 25px rgba(0,0,0,.3);
  transition:.35s cubic-bezier(.2,.8,.2,1);
  position:relative;
  overflow:visible;
}

.social-float a::after{
  content: attr(data-name);
  position:absolute;
  right:60px;
  white-space:nowrap;
  background:#111;
  color:#fff;
  padding:6px 12px;
  border-radius:20px;
  font-size:13px;
  opacity:0;
  transform:translateX(10px);
  pointer-events:none;
  transition:.3s;
}

.social-float a:hover{
  transform:translateX(-8px) scale(1.1);
}

.social-float a:hover::after{
  opacity:1;
  transform:translateX(0);
}

.social-float a.ig:hover{
  background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7);
}

.social-float a.fb:hover{
  background:#1877f2;
}

.social-float a.tik:hover{
  background:#000000;
}

.social-float a.wa:hover{
  background:#25D366;
}

/* ✨ EFECTO SCROLL REVEAL */
.reveal{
  opacity: 0;
  transform: translateY(80px) scale(.95);
  filter: blur(6px);
  transition: all 0.8s cubic-bezier(.2,.8,.2,1);
}

.testi-sub{
  text-align:center;
  margin-top:15px;
  color:var(--text-soft);
  font-size:1rem;
  letter-spacing:.5px;
}
.reveal.active{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ========================================
   TESTIMONIOS
======================================== */

.testimonios{
  position:relative;
  overflow:hidden;
}

.testi-sub{
  text-align:center;
  margin-top:15px;
  color:var(--text-soft);
  font-size:1rem;
}

/* CONTENEDOR */
.testimonios-wrapper{
  position:relative;
  width:100%;
  overflow:hidden;
  margin-top:50px;
}

/* SCROLL HORIZONTAL */
.testi-scroll{
  display:flex;

  flex-direction:row;

  flex-wrap:nowrap;

  align-items:stretch;

  white-space:nowrap;

  gap:18px;

  overflow-x:auto;

  overflow-y:hidden;

  width:100%;

  padding:10px 60px 20px;

  scroll-behavior:smooth;

  -webkit-overflow-scrolling:touch;

  scrollbar-width:none;
}

.testi-scroll::-webkit-scrollbar{
  display:none;
}

/* TARJETAS */
.testi-card{
  flex:0 0 auto;

  width:220px;

  min-width:220px;

  max-width:220px;

  border-radius:22px;

  overflow:hidden;

  background:rgba(255,255,255,.08);

  backdrop-filter:blur(10px);

  border:1px solid rgba(255,255,255,.15);

  box-shadow:0 15px 40px rgba(0,0,0,.12);

  transition:.4s;
}

.testi-card:hover{
  transform:translateY(-6px);
}

/* IMAGEN */
.testi-card img{
  width:100%;

  height:420px;

  object-fit:cover;

  display:block;
}

/* FLECHAS */
.testi-arrow{
  position:absolute;

  top:50%;

  transform:translateY(-50%);

  width:42px;

  height:42px;

  border:none;

  border-radius:50%;

  background:rgba(0,0,0,.45);

  color:#fff;

  cursor:pointer;

  z-index:20;

  backdrop-filter:blur(10px);

  transition:.3s;
}

.testi-arrow:hover{
  transform:translateY(-50%) scale(1.08);
}

.testi-arrow.left{
  left:5px;
}

.testi-arrow.right{
  right:5px;
}

/* MOBILE */
@media(max-width:768px){

  .testi-scroll{
    padding-inline:10px;
    gap:14px;
  }

  .testi-card{
    width:190px;
    min-width:190px;
    max-width:190px;
  }

  .testi-card img{
    height:360px;
  }

  .testi-arrow{
    display:none;
  }
}