:root{
  --blue:#0b2d5c;
  --blue-2:#174a8b;
  --blue-3:#1f65ad;
  --gold:#c9a24a;
  --gold-light:#e7ca7a;
  --white:#fff;
  --off:#f7f8fb;
  --text:#4d5968;
  --dark:#112033;
  --shadow:0 12px 32px rgba(11,45,92,.14);
  --radius:16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Segoe UI",Arial,Helvetica,sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.6;
}
img{max-width:100%;display:block}
a{color:inherit}
.container{width:min(1180px,92%);margin:auto}

/* HEADER */
.site-header{
  width:100%;
  background:#fff;
  border-bottom:2px solid var(--gold);
}

.logo-banner{
  width:100%;
  height:auto;
  padding:10px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  background:#fff;
}

.logo-banner a{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo-banner img,
.logo-img{
  width:100%;
  max-width:1100px;
  height:auto;
  max-height:230px;
  object-fit:contain;
  object-position:center;
  display:block;
  margin:0 auto;
}

/* NAV */
.menu-principal{
  width:100%;
  background:#fff;
  border-top:1px solid #e5e8ee;
  border-bottom:3px solid var(--gold);
  box-shadow:0 4px 14px rgba(0,0,0,.08);
}
.menu-inner{
  width:min(1100px,95%);
  margin:auto;
  min-height:70px;
  margin: auto;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  flex-wrap: wrap;
}
.menu-inner a{
  min-width:120px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 20px;
  border:1px solid rgba(11,45,92,.14);
  border-radius:8px;
  background:#fff;
  color:var(--blue);
  font-weight:700;
  text-decoration:none;
  box-shadow:0 3px 8px rgba(0,0,0,.08);
  transition:.25s ease;
}
.menu-inner a:hover{
  background:var(--gold);
  color:var(--blue);
  transform:translateY(-2px);
  border-color:var(--gold);
}

/* HERO */
.hero{
  position:relative;
  width:100%;
  height:520px;
  overflow:hidden;
  background:var(--blue);
}

.hero-slider{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
}

.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background-size:contain;
  background-position:center;
  background-repeat:no-repeat;
  background-color:var(--blue);
  opacity:0;
  transition:opacity 1s ease;
}

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

/* Si las imágenes están en la misma carpeta que index.html y style.css */
.slide-1{background-image:url("carroza1.png")}
.slide-2{background-image:url("carroza2.png")}
.slide-3{background-image:url("iglesia3.png")}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  background:
    linear-gradient(90deg,
      rgba(5,24,58,.36) 0%,
      rgba(5,24,58,.42) 35%,
      rgba(5,24,58,.67) 65%,
      rgba(5,24,58,.82) 100%);
}
.hero-content{
  position:relative;
  z-index:3;
  width:min(1180px,92%);
  height:100%;
  margin:auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding-left:32%;
  color:white;
}
.hero-small{
  margin:0 0 12px;
  color:var(--gold-light);
  font-weight:800;
  letter-spacing:1.5px;
  text-transform:uppercase;
}
.hero-content h1{
  max-width:760px;
  margin:0;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(42px,4.3vw,68px);
  line-height:1.06;
  text-shadow:0 3px 10px rgba(0,0,0,.45);
}
.hero-description{
  max-width:680px;
  margin:22px 0 0;
  font-size:20px;
  color:rgba(255,255,255,.94);
  text-shadow:0 2px 8px rgba(0,0,0,.45);
}
.hero-buttons{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px;
}
.hero-dots{
  position:absolute;
  z-index:5;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
}
.dot{
  width:12px;
  height:12px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  cursor:pointer;
}
.dot.active{background:var(--gold);transform:scale(1.15)}

/* BUTTONS */
.btn{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 24px;
  border-radius:8px;
  text-decoration:none;
  border:1px solid transparent;
  font-weight:800;
  cursor:pointer;
  transition:.25s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 8px 20px rgba(11,45,92,.2)}
.btn-primary:hover{background:var(--blue-2)}
.btn-gold{background:var(--gold);color:var(--blue);box-shadow:0 8px 20px rgba(201,162,74,.28)}
.btn-gold:hover{background:var(--gold-light)}
.btn-light{background:#fff;color:var(--blue);box-shadow:0 8px 20px rgba(0,0,0,.16)}
.btn-light:hover{background:var(--gold)}

/* SECTIONS */
.section{padding:85px 0}
.section-soft{background:var(--off)}
.section-title{text-align:center;margin-bottom:42px}
.section-title span,.eyebrow{
  color:var(--gold);
  font-weight:800;
  letter-spacing:1.6px;
  text-transform:uppercase;
  font-size:.86rem;
}
.section-title h2,.split h2{
  margin:8px 0 12px;
  color:var(--blue);
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.15;
}
.section-title p{max-width:700px;margin:0 auto}

/* CARDS */
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.card{
  background:#fff;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid rgba(11,45,92,.07);
  transition:.3s ease;
}
.card:hover{transform:translateY(-7px);box-shadow:0 18px 42px rgba(11,45,92,.18)}
.card img{width:100%;height:240px;object-fit:cover}
.card-content{padding:25px}
.card h3{margin:0 0 8px;color:var(--blue);font-size:1.35rem}
.text-link{color:var(--blue-2);font-weight:800;text-decoration:none}

.split{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
  align-items:center;
}
.feature-box{
  padding:34px;
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border-left:5px solid var(--gold);
}
.feature-box h3{color:var(--blue);margin-top:0}

/* INTERNAL PAGE HERO */
.page-hero{
  padding:90px 0 80px;
  color:#fff;
  background:
    linear-gradient(120deg,rgba(11,45,92,.95),rgba(31,101,173,.84)),
    url("../imagenes/iglesia2.png") center/cover no-repeat;
}
.page-hero h1{
  margin:8px 0 10px;
  color:#fff;
  font-size:clamp(2.5rem,5vw,4.8rem);
  line-height:1.05;
}
.page-hero p{max-width:750px;font-size:1.1rem;color:rgba(255,255,255,.9)}

/* SERVICES */
.service-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}
.service-item{
  background:#fff;
  padding:28px;
  border-radius:var(--radius);
  border:1px solid rgba(11,45,92,.08);
  box-shadow:var(--shadow);
}
.service-item h2{margin-top:0;color:var(--blue)}

/* PLANS */
/* =========================================
   PLANES FUNERARIOS
========================================= */

.planes-funerarios {
    padding: 80px 0;
    background: #f7f8fb;
}


/* =========================================
   IMAGEN GRANDE
========================================= */

.planes-imagen {

    position: relative;

    width: 100%;

    min-height: 520px;

    background-image:
        url("planes-funerarios.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 15px 35px
        rgba(11,45,92,.18);
}


/* =========================================
   CUADRO DE INFORMACIÓN
========================================= */

.planes-informacion {

    position: absolute;

    top: 50%;

    left: 55px;

    transform:
        translateY(-50%);

    width: 390px;

    max-width:
        calc(100% - 110px);

    padding: 35px;

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

    border-radius: 16px;

    border-left:
        5px solid #c9a24a;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.22);

    backdrop-filter:
        blur(5px);

    /* ANIMACIÓN */
    animation:
        aparecerPlanes 8s
        ease-in-out
        infinite;
}


/* =========================================
   TÍTULO
========================================= */

.planes-informacion h3 {

    margin:
        0 0 18px;

    color:
        #0b2d5c;

    font-size:
        28px;

    line-height:
        1.25;
}


/* =========================================
   DESCRIPCIÓN
========================================= */

.planes-informacion p {

    margin:
        0 0 20px;

    color:
        #4d5968;

    font-size:
        17px;

    line-height:
        1.65;
}


/* =========================================
   PRECIO
========================================= */

.precio-plan {

    margin:
        15px 0 22px;

    color:
        #0b2d5c;

    font-size:
        34px;

    font-weight:
        800;
}


.precio-plan span {

    font-size:
        17px;

    color:
        #4d5968;

    font-weight:
        600;
}


/* =========================================
   BOTÓN
========================================= */

.boton-plan {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        145px;

    min-height:
        48px;

    padding:
        0 24px;

    background:
        #0b2d5c;

    color:
        #ffffff;

    text-decoration:
        none;

    font-weight:
        700;

    border-radius:
        8px;

    transition:
        .3s ease;
}


.boton-plan:hover {

    background:
        #c9a24a;

    color:
        #0b2d5c;

    transform:
        translateY(-3px);
}


/* =========================================
   APARECER Y DESAPARECER
========================================= */

@keyframes aparecerPlanes {

    /* Comienza invisible */

    0% {

        opacity: 0;

        transform:
            translateY(-50%)
            translateX(-40px);

    }


    /* Aparece */

    15% {

        opacity: 1;

        transform:
            translateY(-50%)
            translateX(0);

    }


    /* Permanece visible */

    70% {

        opacity: 1;

        transform:
            translateY(-50%)
            translateX(0);

    }


    /* Desaparece */

    85% {

        opacity: 0;

        transform:
            translateY(-50%)
            translateX(40px);

    }


    100% {

        opacity: 0;

        transform:
            translateY(-50%)
            translateX(40px);

    }

}
@media (max-width: 650px) {

    .planes-imagen {

        min-height: 580px;

        background-position:
            65% center;

    }


    .planes-informacion {

        top: 50%;

        left: 20px;

        width:
            calc(100% - 40px);

        max-width:
            none;

        padding:
            25px;

    }


    .planes-informacion h3 {

        font-size:
            24px;

    }


    .planes-informacion p {

        font-size:
            15px;

    }


    .precio-plan {

        font-size:
            30px;

    }

}

/* CONTACT */
.contact-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:28px;
}
.contact-panel,.contact-form{
  padding:32px;
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.contact-panel h2,.contact-form h2{color:var(--blue);margin-top:0}
.contact-row{
  padding:14px 0;
  border-bottom:1px solid #e8ebf0;
}
.contact-row strong{display:block;color:var(--blue)}
.contact-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.contact-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.contact-form label{font-weight:700;color:var(--blue)}
.contact-form input,.contact-form textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid #d6dbe3;
  border-radius:8px;
  font:inherit;
}
.contact-form input:focus,.contact-form textarea:focus{
  outline:none;
  border-color:var(--blue-3);
  box-shadow:0 0 0 3px rgba(11, 45, 92, 0.96);
}
.map-placeholder{
  min-height:340px;
  display:grid;
  place-items:center;
  border-radius:var(--radius);
  background:
    linear-gradient(135deg,rgba(11, 45, 162, 0.96),rgba(31,101,173,.85));
  color:#fff;
  box-shadow:var(--shadow);
}

/* FOOTER */
.site-footer{
  background:linear-gradient(135deg,var(--blue),#071e3e);
  color:rgba(255,255,255,.84);
  padding:55px 0 22px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:35px;
}
.site-footer h3{color:#fff}
.site-footer a{display:block;text-decoration:none;margin:7px 0}
.site-footer a:hover{color:var(--gold-light)}
.footer-bottom{
  width:min(1180px,92%);
  margin:34px auto 0;
  padding-top:20px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.14);
}
.whatsapp-flotante {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 65px;
    height: 65px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #25D366;
    color: white;

    border-radius: 50%;

    text-decoration: none;

    font-size: 38px;

    z-index: 9999;

    box-shadow:
        0 8px 25px rgba(0,0,0,.25);

    transition: .3s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.12);
    background: #20ba5a;
}

.whatsapp-flotante i {
    line-height: 1;
}

/* RESPONSIVE */
@media (max-width:900px){
  .logo-img{max-height:180px}
  .menu-inner{overflow-x:auto}
  .menu-inner a{min-width:105px}
  .hero{height:560px}
  .hero-content{padding-left:18%}
  .cards,.plans-grid{grid-template-columns:repeat(2,1fr)}
  .split,.contact-grid{grid-template-columns:1fr}
  .service-list{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:650px){
  .logo-img{max-height:130px}
  .menu-inner{
    min-height:58px;
    width:100%;
    padding:0 6px;
    gap:5px;
    justify-content:flex-start;
  }
  .menu-inner a{
    min-width:auto;
    height:38px;
    padding:0 10px;
    font-size:12px;
  }
  .hero{height:520px}
  .hero-content{
    width:88%;
    padding-left:0;
    align-items:flex-start;
  }
  .hero-content h1{font-size:36px}
  .hero-description{font-size:16px}
  .cards,.plans-grid,.footer-grid{grid-template-columns:1fr}
  .plan-card.featured{transform:none}
  .card img{height:220px}
  .section{padding:65px 0}
}
/* ==========================================
   ANIMACIONES AL HACER SCROLL
========================================== */

.animar {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================
   HEADER AL HACER SCROLL
========================================== */

.site-header {
    transition:
        box-shadow .3s ease;
}

.site-header.header-scroll {
    box-shadow:
        0 5px 20px
        rgba(11, 45, 92, .18);
}


/* ==========================================
   BOTÓN MENÚ MÓVIL
========================================== */

.menu-toggle {
    display: none;

    background: #0b2d5c;
    color: white;

    border: 0;

    border-radius: 8px;

    padding: 10px 14px;

    font-size: 25px;

    cursor: pointer;
}


/* ==========================================
   CELULARES
========================================== */

@media (max-width: 650px) {

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
    }

    .nav-menu.activo {
        display: flex;
        flex-direction: column;
    }

}