/* ============================================= */
/* ESTILOS GENERALES Y RESETEO BÁSICO            */
/* ============================================= */
body {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    background-color: #F8FAFC;
}

/* ============================================= */
/* ESTILOS DEL ENCABEZADO (HEADER)               */
/* ============================================= */
header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav img {
    height: 70px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #4B4998;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.btn-cta-desktop {
    background-color: #E61A5A;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
}

/* ============================================= */
/* ESTILOS DE LA SECCIÓN HERO                    */
/* ============================================= */
.hero {
    background-color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    color: #4B4998;
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero p {
    font-size: 18px;
    color: #333;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.btn-primary {
    background-color: #E61A5A;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #4B4998;
    border: 2px solid #4B4998;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
}

/* ============================================= */
/* ESTILOS DE LA SECCIÓN DE SERVICIOS (HOMEPAGE) */
/* ============================================= */
.services {
    padding: 60px 20px;
}

.services h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #4B4998;
    font-size: 36px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.lottie-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    color: #4B4998;
    font-size: 22px;
    margin-bottom: 15px;
}

/* ============================================= */
/* ESTILOS DE LA SECCIÓN SOBRE NOSOTROS (HOMEPAGE) */
/* ============================================= */
.about {
    background-color: white;
    padding: 80px 20px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-family: 'Poppins', sans-serif;
    color: #4B4998;
    font-size: 36px;
    margin-top: 0;
}

.about-content p {
    font-size: 17px;
    line-height: 1.7;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ============================================= */
/* ESTILOS DE LA SECCIÓN DE CONTACTO (CORREGIDO) */
/* ============================================= */
.contact {
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact h2 {
    font-family: 'Poppins', sans-serif;
    color: #4B4998;
    font-size: 36px;
    margin-bottom: 20px;
}

.contact p {
    max-width: 500px;
    margin-bottom: 30px;
}

.contact .btn-primary {
    display: inline-block;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

.contact-form button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    transition: transform 0.2s ease;
    background-color: #E61A5A;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.contact-form button:hover {
    transform: translateY(-3px);
}

/* ============================================= */
/* ESTILOS PARA PÁGINAS INTERNAS                 */
/* ============================================= */
.page-header {
    background-color: #4B4998;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    margin: 0 0 10px 0;
}

.service-details {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    color: #4B4998;
}

.service-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-text ul li {
    margin-bottom: 10px;
    font-size: 17px;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-page-section {
    padding: 80px 20px;
    background-color: white;
}

.mission-vision {
    background-color: #F8FAFC;
    padding: 80px 20px;
}

.mission-vision-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-vision .card {
    background-color: white;
    padding: 30px;
    border-left: 5px solid #FDC309;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
}

.mission-vision .card h3 {
    font-family: 'Poppins', sans-serif;
    color: #4B4998;
    margin-top: 0;
}

/* ============================================= */
/* ESTILOS PARA LA PÁGINA DE BLOG                */
/* ============================================= */
.blog-list {
    padding: 80px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-tag {
    background-color: #FDC309;
    color: #4B4998;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #4B4998;
    margin: 0 0 10px 0;
}

.post-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1;
}

/* ============================================= */
/* ESTILOS PARA ARTÍCULO INDIVIDUAL              */
/* ============================================= */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.post-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    color: #4B4998;
    line-height: 1.3;
    margin: 0;
}

.post-meta {
    font-size: 15px;
    color: #777;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.post-meta a {
    font-weight: 600;
}

.featured-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.post-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: #4B4998;
    margin-top: 40px;
}

.post-content p,
.post-content li {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-content ul,
.post-content ol {
    padding-left: 30px;
}

.post-cta {
    background-color: #F8FAFC;
    border: 2px dashed #FDC309;
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
    text-align: center;
}

.post-cta h3 {
    font-family: 'Poppins', sans-serif;
    color: #4B4998;
    margin: 0 0 10px 0;
}

/* ============================================= */
/* ESTILOS MEJORADOS PARA LA LANDING PAGE (COTIZA) */
/* ============================================= */
.landing-header {
    padding: 20px;
    text-align: center;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.landing-header img {
    height: 60px;
}

.landing-hero {
    background-color: white;
    padding: 60px 20px;
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-hero-content {
    flex: 1;
    text-align: left;
}

.landing-hero-image {
    flex: 1;
}

.landing-hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.landing-hero h1 {
    font-size: 42px;
    text-align: left;
}

.landing-hero p {
    text-align: left;
}

.payment-highlight {
    background-color: #eff6ff;
    border-left: 4px solid #0052FF;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 8px;
}

.payment-highlight p {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0;
    text-align: left;
}

.landing-section, .landing-section-white {
    padding: 80px 20px;
    text-align: center;
}

.landing-section-white {
    background-color: white;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 18px;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.risk-card {
    background-color: #fffbeb;
    color: #92400e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #fde68a;
    font-weight: 600;
    font-size: 17px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #FDC309;
    color: #4B4998;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: 'Poppins', sans-serif;
}

.process-step h3 {
    font-family: 'Poppins', sans-serif;
    color: #4B4998;
    font-size: 22px;
}

.landing-cta {
    background-color: #4B4998;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.landing-cta h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.btn-large {
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 700;
}

.landing-footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 14px;
    background-color: #F8FAFC;
}

/* ============================================= */
/* ESTILOS DEL PIE DE PÁGINA (FOOTER)            */
/* ============================================= */
footer {
    background-color: #4B4998;
    color: white;
    padding: 60px 20px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
    flex-wrap: wrap;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #FDC309;
}

.footer-links h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-size: 14px;
}

/* ============================================= */
/* ESTILOS PARA EL MENÚ MÓVIL (HAMBURGUESA)      */
/* ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #4B4998;
    border-radius: 2px;
}

.btn-cta-mobile {
    display: none;
}

/* ============================================= */
/* REGLAS RESPONSIVAS PARA MÓVILES (MEDIA QUERIES) */
/* ============================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .landing-hero {
        flex-direction: column;
        text-align: center;
    }

    .landing-hero h1, .landing-hero p, .landing-hero .payment-highlight p {
        text-align: center;
    }

    .landing-hero .btn-large, .landing-hero .category-tag {
        align-self: center;
    }

    .landing-content h1 {
        font-size: 32px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .service-item, .service-item.reverse {
        flex-direction: column;
        text-align: center;
    }

    .mission-vision-container {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
    }
    .btn-cta-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    nav ul.active {
        display: flex;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 20px;
    }

    .btn-cta-mobile {
        display: inline-block;
        background-color: #E61A5A;
        color: white;
        padding: 10px 20px;
        border-radius: 8px;
    }
}