:root {
    --navy-deep: #1a2755;
    --navy-medium: #1e2f5e;
    --yellow-accent: #F5C842;
    --white: #ffffff;
    --gray-text: #666666;
    --shadow-soft: 0 15px 45px rgba(0, 0, 0, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; background: var(--white); color: #222; overflow-x: hidden; }
h1, h2, h3, h4, h5, .btn-leer-articulo, .btn-leer-articulo-yellow { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; }

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    height: 75px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo-wrap img { height: 48px; display: block; }
.navbar-links { display: flex; list-style: none; gap: 35px; align-items: center; }
.navbar-links a {
    font-weight: 700; 
    color: #1a2755;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif; 
}
.btn-nav-contactar {
    background: #F5C842;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700 !important;
    color: #1a2755 !important;
}

/* BLOG HERO */
.hero-wrap { padding: 25px; }
.blog-hero { 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative;
    overflow: visible; 
}
.hero-image-container { 
    height: 480px; 
    border-radius: 35px 35px 0 0;
    overflow: hidden;
}
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; }

.hero-title-box { 
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: #1e2f5d;
    padding: 35px 45px; 
    text-align: center; 
    color: white; 
    border-radius: 40px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 20;
}
.hero-title-box h1 { font-size: clamp(1.4rem, 3.5vw, 2.5rem); margin: 0; font-weight: 700; }

/* CONTENIDO */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 100px 20px 60px; text-align: center; }
.blog-section-title { font-size: 3rem; color: var(--navy-deep); margin-bottom: 45px; font-weight: 800; }

/* CARRUSEL DESTACADOS */
.carousel-container { position: relative; height: 380px; margin-bottom: 20px; }
.featured-card {
    display: flex; background: white; border-radius: 40px; overflow: hidden;
    box-shadow: var(--shadow-soft); position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.8s ease; align-items: center; text-align: left;
    pointer-events: none;
}
.featured-card.active { opacity: 1; z-index: 10; pointer-events: auto; }
.featured-img { flex: 1; height: 100%; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-content { flex: 1.2; padding: 45px; }
.featured-content h3 { font-size: 1.8rem; color: var(--navy-deep); margin-bottom: 15px; line-height: 1.2; }
.featured-content p { color: var(--gray-text); margin-bottom: 25px; font-size: 1rem; }
.btn-leer-articulo { background: var(--yellow-accent); color: var(--navy-deep); padding: 10px 25px; border-radius: 50px; font-weight: 700; display: inline-block; }

.carousel-dots { display: flex; justify-content: center; gap: 15px; margin-bottom: 60px; }
.dot { width: 15px; height: 15px; background: #e2e2e2; border-radius: 50%; transition: 0.3s; cursor: pointer; }
.dot:hover { background: #d0d0d0; }
.dot.active { background: #1e2f5d; width: 45px; border-radius: 10px; }

/* OTROS ARTICULOS (ESTILO IMAGEN) */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { position: relative; height: 460px; border-radius: 45px; overflow: hidden; box-shadow: var(--shadow-soft); }
.article-card img { width: 100%; height: 100%; object-fit: cover; }
.article-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.4) 60%, rgba(26, 39, 85, 0.85) 95%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 35px; color: white; text-align: left;
}
.category-tag {
    background: var(--navy-deep); padding: 6px 15px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; width: fit-content;
}
.article-overlay h4 { font-size: 1.2rem; margin-bottom: 20px; line-height: 1.3; font-weight: 600; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.btn-leer-articulo-yellow {
    background: var(--yellow-accent); color: var(--navy-deep); padding: 8px 25px;
    border-radius: 50px; font-weight: 700; font-size: 0.9rem; width: fit-content; display: block;
}

/* FOOTER (Estilos unificados con la plantilla de seguros) */
footer {
    background: #1a2755;
    color: #fff;
    padding: 50px 5% 30px;
}

.footer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
}

.footer-tagline {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-cols {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* Aplicamos text-decoration: none !important para quitar cualquier línea */
.footer-col p, 
.footer-col li, 
.footer-col a {
    font-size: 0.85rem;
    color: #fff;
    list-style: none;
    margin-bottom: 6px;
    opacity: 0.9;
    text-decoration: none !important; 
}

.footer-col a:hover {
    color: #F5C842;
    text-decoration: none !important;
}

.contact-highlight {
    font-weight: 600;
    font-size: 0.9rem !important;
}

.address-block {
    margin-top: 15px;
}

.footer-mapa-grid {
    display: flex;
    gap: 40px;
}

.map-group h5 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #fff;
}

.no-title {
    padding-top: 25px;
}

.social-links-container {
    margin-top: 30px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    align-items: center;
}

.social-icons a {
    font-size: 1.4rem;
    color: #fff;
    transition: color 0.3s;
    text-decoration: none !important;
}

.social-icons a:hover {
    color: #F5C842;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .hero-banner, .producto-detalle-card, .plan-detalle-banner {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        padding: 40px 20px;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-photo.glow-effect {
        width: 100%;
        height: 300px;
        justify-content: center;
    }
    .planes-grid {
        grid-template-columns: 1fr;
    }
    .footer-cols, .footer-mapa-grid {
        flex-direction: column;
        gap: 30px;
    }
    .no-title {
        padding-top: 0;
    }
}