/* Animaci¨®n de latido */
@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.03); }
    50% { transform: scale(1); }
    75% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.btn-whatsapp {
    background-color: #c63e28;
    color: white;
    padding: 12px 15px;
    border: none;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
    transition: all 0.3s;
    animation: heartbeat 3s infinite ease-in-out;
}

.btn-whatsapp:hover {
    background-color: #a03320;
    color: white;
    animation: none;
    transform: scale(1.05);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
}

/* Reset y configuraci¨®n base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Container personalizado */
.custom-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* Fuentes y estilos generales */
body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Header */
.header {
    background-color: #ffffff;
    padding: 0;
    text-align: center;
    position: fixed; /* Cambiado a fixed para mayor compatibilidad movil */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    height: 90px;
    display: flex;
    align-items: center;
}

/* Espaciador para compensar el header fixed */
body {
    padding-top: 90px;
}

.header.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.header .custom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    transition: all 0.3s ease;
    max-width: 1100px;
    width: 100%;
    height: 100%;
    position: relative;
}

.header.scrolled .custom-container {
    justify-content: center;
}

.header-logo {
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    height: auto;
    object-fit: contain;
}

.header.scrolled .header-logo {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transform: scale(0.9);
}

.header-btn {
    opacity: 0;
    visibility: hidden;
    font-size: 18px;
    padding: 12px 25px;
    transition: all 0.4s ease-in-out;
    transform: scale(0.8);
    white-space: nowrap;
    position: absolute;
}

.header.scrolled .header-btn {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
    display: inline-flex;
}

/* Hero Section */
.hero-section {
    background-image: url('../images/imagen_fondo_hero.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-title-1 {
    font-size: 52px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 50px;
    text-transform: uppercase;
    text-align: center;
    line-height: 58px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-feature {
    text-align: center;
    max-width: 320px;
}

.hero-feature img {
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
}

.hero-feature p {
    color: #ffffff;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    text-align: center;
}

/* Price Section */
.price-section {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.price-section h2 {
    text-align: center;
    color: rgb(102, 101, 101);
    margin-bottom: 60px;
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    max-width: 340px;
    width: 100%;
}

.price-card.card-blue { background-color: #2068a8; }
.price-card.card-blue .btn-info { color: #2068a8; }
.price-card.card-red { background-color: #c63d29; }
.price-card.card-red .btn-info { color: #c63d29; }
.price-card.card-dark-blue { background-color: #24478b; }
.price-card.card-dark-blue .btn-info { color: #24478b; }

.price-icon-circle {
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.price-icon-circle img {
    width: 57px;
    height: 57px;
}

.price-card h3 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: 1px;
}

.price-label {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 0;
}

.price-amount {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 38px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 30px;
}

.price-features {
    text-align: center;
    margin-bottom: 30px;
}

.price-features p {
    color: #ffffff;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 26px;
}

.btn-info {
    background-color: #ffffff;
    width: 241px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-info:hover {
    background-color: #f0f0f0;
}

/* Icon Section */
.icon-section {
    background-color: #c63d29;
    padding: 80px 0 60px 0;
}

.icon-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.icon-item {
    text-align: center;
    max-width: 300px;
}

.icon-circle {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-circle img {
    width: 56px;
    height: 56px;
}

.icon-item h4 {
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 26px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 42px;
}

.icon-item p {
    color: white;
    font-size: 15px;
    line-height: 1.6;
}

/* Did You Know Section */
.did-you-know {
    background-color: #fff;
    padding: 60px 0;
}

.did-you-know .custom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.did-you-know h3 {
    color: #666565;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 0;
    white-space: nowrap;
}

.did-you-know p {
    color: #666565;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    text-align: justify;
    max-width: 800px;
}

/* Institutions Section */
.institutions-section {
    background-color: #f0f0f0;
    padding: 80px 0;
    text-align: center;
}

.institutions-section h2 {
    color: #666565;
    font-size: 28px;
    margin-bottom: 60px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 45px;
}

.institutions-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.institutions-logos img {
    height: auto;
}

.institutions-logos img:nth-child(1) { width: 181px; }
.institutions-logos img:nth-child(2) { width: 193px; }
.institutions-logos img:nth-child(3) { width: 240px; }
.institutions-logos img:nth-child(4) { width: 203px; }

/* Location Section */
.location-section {
    background-color: #fff;
    padding: 80px 0;
}

.location-section h2 {
    text-align: center;
    color: #666565;
    margin-bottom: 60px;
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 45px;
}

.map-container {
    width: 100%;
    height: 383px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.location-info h3 {
    color: rgb(198, 62, 41);
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 400;
}

.location-info p {
    color: #666565;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

/* About Section */
.about-section {
    background-color: #c63d29;
    padding: 80px 0;
}

.about-section h2 {
    text-align: center;
    color: white;
    margin-bottom: 60px;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
}

.about-image img {
    width: 323px;
    height: 486px;
    object-fit: cover;
}

.about-text {
    max-width: 450px;
}

.about-text p {
    color: white;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    text-align: justify;
    margin-bottom: 20px;
}

/* FAQ Section */
.faq-section {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    color: #666565;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 45px;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border: none;
    margin-bottom: 0;
    background: transparent;
}

.accordion-button {
    background-color: #c63d29;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    padding: 5px 25px;
    border-radius: 0 !important;
    box-shadow: none;
    transition: all 0.3s;
}

.accordion-button:not(.collapsed) {
    background-color: #2068a8;
    color: #ffffff;
    box-shadow: none;
}

.accordion-button::after {
    background-size: 15px;
    filter: brightness(0) invert(1);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    background-color: #ffffff;
    color: #666565;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    line-height: 26px;
    padding: 15px 25px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-top: 0;
    margin-bottom: 20px;
    box-shadow: none;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* CTA Section */
.cta-section {
    background-image: url('../images/imagen_fondo_prefooter.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    min-height: 439px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.5);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 600;
    color: white;
    margin-bottom: 50px;
    text-transform: uppercase;
    line-height: 58px;
}

/* Footer */
footer {
    background-color: #ffffff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: right;
}

.footer-logo {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.footer-text {
    flex: 1;
}

.footer-text p {
    margin-bottom: 1px;
    font-family: 'Source Sans Pro', sans-serif;
    color: rgb(102, 101, 101);
    font-weight: 400;
}

.footer-name {
    font-size: 14px;
    margin-bottom: 4px !important;
}

.footer-cedula {
    font-size: 11px;
}

/* Responsive (Breakpoint 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Altura del header movil */
    }

    .custom-container {
        padding: 0 20px; /* Aire lateral en movil */
    }

    .header {
        height: 80px;
    }

    .header-logo {
        max-width: 220px;
        height: auto;
        image-rendering: -webkit-optimize-contrast;
    }

    .header-btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    .hero-section {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-title-1 {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 30px;
    }

    .hero-features {
        gap: 30px;
    }

    .location-info {
        text-align: center;
    }

    .location-info h3 {
        font-size: 22px;
    }

    .price-section h2, 
    .institutions-section h2, 
    .location-section h2, 
    .faq-section h2, 
    .about-section h2 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .cta-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .did-you-know .custom-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .did-you-know h3 {
        white-space: normal;
    }

    .did-you-know p {
        text-align: center;
    }

    .institutions-logos {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2x2 Grid */
        gap: 30px;
        justify-items: center;
    }

    .institutions-logos img:nth-child(n) {
        width: auto !important;
        max-width: 120px;
        height: auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-text {
        text-align: center;
    }

    .about-text {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .about-text p {
        text-align: center;
    }

    .about-image {
        text-align: center;
        margin-bottom: 30px;
    }

    .price-cards {
        gap: 20px;
    }

    .icon-grid {
        gap: 30px;
    }

    .accordion-item {
        margin-bottom: 20px; /* Separacion de 20px entre acordeones */
    }

    .accordion-button {
        height: 100px; /* Altura fija para uniformar los 8 */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 45px 10px 20px;
        line-height: 1.2;
    }

    .accordion-button::after {
        position: absolute;
        right: 15px;
    }
}
