/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    overflow-x: hidden; /* Previene scroll horizontal */
    font-family: 'Inter', sans-serif;
}
html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
}
section[id] {
    scroll-margin-top: 70px;
}
h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* Loader Screen */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D1B69 0%, #1E3A8A 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #00a0d0;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Ocultar contenido hasta que cargue */
body:not(.loaded) .header,
body:not(.loaded) .hero {
    opacity: 0;
}

body.loaded .header,
body.loaded .hero {
    opacity: 1;
    transition: opacity 0.5s ease;
}
/* Header Styles */
.header {
    /*background: linear-gradient(135deg, #2D1B69 0%, #1E3A8A 100%);*/
    background: transparent;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease; /*nuevo*/
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
}
/* NUEVO: Estado con scroll - fondo visible */
.header.scrolled {
    background: linear-gradient(135deg, #2D1B69 0%, #1E3A8A 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0; /* Ligeramente menos padding cuando tiene fondo */
}


.logo-header {
    margin-left: auto;
    height: 40px;
}

.nav {
    display: flex;
    justify-content: space-between;
    background: transparent;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-weight: bolder;
}

.nav-brand {
    margin-bottom: 0;
}

.nav-mobile {
    list-style-type: none; 
}

.nav-mobile a {
    text-decoration: none;

}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    position: relative;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    transform: translateY(-2px);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: white;
    transition: width 0.3s ease;
    }

.nav-menu a:hover::after {
    width: 100%;
}

.search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-btn img {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero {
    background-image: url("images/LANDING-PORTADA.png");
    background-size: cover;
    background-position: left;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /*margin-top: 80px;*/
}

.hero-background {
    width: 100%;
    position: relative;
}

.hero-logo img{
    width: 350px;
    height: 175px;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    max-width: 1200px;
    margin-bottom: 400px;
    min-height: 60vh;
    justify-content: center;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 500px;
    margin-left: 1.2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #0ab5e8;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title-green {
    color: #0c9547;
    display: block;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    color: white;
    font-weight: bold;
    opacity: 0.9;
    line-height: 1.4;
    margin-left: 10px;
    width: 300px;
}

.hero-graphics {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: brightness(1.1) contrast(1.1);
}

.medical-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.medical-cross {
    position: absolute;
    color: #00D4AA;
    font-size: 2rem;
    font-weight: bold;
    animation: float 3s ease-in-out infinite;
}

.cross-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.cross-2 {
    top: 60%;
    left: 5%;
    animation-delay: 1s;
}

.cross-3 {
    bottom: 15%;
    right: 25%;
    animation-delay: 2s;
}

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

/* What is Section */
.what-is-section {
    padding: 3rem 0;
    background: white;
}

.section-header {
    text-align: left;
    margin-bottom: 1rem;
    display: flex;
    gap: 10px;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    background: #00338c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 40px;
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
}

.section-description {
    text-align: left;
    /*max-width: 800px;*/
    margin: 0 auto 2rem;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #00338c;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
    padding: 0;
    justify-content: space-between;
}

.feature-item {
    /*display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: self-start;
    gap: 1.5rem;
    margin: 0 auto;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);*/
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.feature-number {
    /*background: #1E3A8A;
    color: #1E3A8A;
    /*width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 4.2rem;
    flex-shrink: 0;*/
    width: 50px;
    height: 50px;
    color: #1E3A8A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    margin-right: 30px;
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1E3A8A;
    max-width: 600px;
    line-height: 1.4;
    text-align: justify;
}

.feature-image {
    /*width: 100px;
    height: 80px;
    object-fit: contain;
    margin-top: 1rem;
    max-width: 350px;
    vertical-align: middle;*/
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;

}

/* Target Audience Section */
.audience-section {
    padding: 3rem 0;
    background: #00338c;
}

.audience-section h2 {
    text-align: left;
    background:#fff;
    color:  #1E3A8A;
    padding: 1rem 2rem;
    border-radius: 40px;
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    display: block;
    max-width: fit-content;
}

.audience-section  p {
    text-align: left;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: #fff;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.audience-item {
    text-align: center;
    padding: 2rem;
    background: transparent;
    /*border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s ease;
}

.audience-item:hover {
    transform: translateY(-5px);
}

.audience-image {

    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.audience-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

/* Features Section */
.features-section {
    padding: 3rem 0;
    background: white;
}

.features-section h2 {
    text-align: left;
    background: #1E3A8A;
    color: white;
    padding: 1rem 2rem;
    border-radius: 40px;
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 2.5rem;
    display: block;
    max-width: fit-content;
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.key-feature {
    text-align: center;
    padding: 2rem;
    /*background: #f8f9fa;
    border-radius: 15px;*/
    transition: transform 0.3s ease;
}

.key-feature:hover {
    transform: translateY(-3px);
}

.key-feature-icon {
    /*width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;*/
}

.key-feature h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #1E3A8A;
}

.key-feature p {
    color: #1E3A8A;
    line-height: 1.1;
}

/* Why Choose Section */
.why-choose-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #2D1B69 0%, #1E3A8A 100%);
    color: white;
}

.why-choose-header {
    display: flex;
    align-items: center;
    margin: 0 0 2.5rem;
    gap: 10px;
}

.why-choose-section h2 {
    background: #fff;
    color: #1E3A8A;
    padding: 1rem 2rem;
    border-radius: 40px;
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
    display: inline-block;
    max-width: fit-content;
    text-align: left;
}

.why-choose-section > .container > p {
    text-align: left;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.benefits-list {
    margin: 2.1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 800px;
    margin-right: auto;
    align-items: flex-start;
}

.benefit-item {
    text-align: left;
}

.benefit-text {
    background: #00a0d0;
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    font-size: 1.5rem;

}

.cta-section {
    text-align: center;
}

.cta-section p:first-child {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #1E3A8A;
}
.register-section {
    padding: 3rem 0;
}

.cta-button {
    background: #00a0d0;
    color: #FFFFFF;
    padding: 0.4rem 1.7rem;
    border-radius: 25px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 160, 208, 0.85);
}

.cta-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-top: 2rem;
}
    /* mobile menu */
    .off-screen-menu {
        background: linear-gradient(135deg, #2d1b69a1 20%, #1e3b8ab0 50%);
        height: 100vh;
        width: 100%;
        max-width: 450px;
        position: fixed;
        top: 0;
        right: -450px;
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 3rem;
        transition: .3s ease;
    }

    .off-screen-menu.active {
        right: 0;
    }

.nav-mobile a {
    font-size: 1.2rem;
    text-transform: capitalize;
    color: #ffffff;
}
.ham-menu {
    height: 50px;
    width: 1.4rem;
    position: relative;
    display: none;
}
.ham-menu span {
    width: 30px;
    height: 3px;
    background-color: #ffff;
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: (-50%,-50%);
    transition: all 0.3s ease;
    z-index: 1;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.ham-menu.active span:nth-child(1) {
    color: #1E3A8A;
    transform: rotate(45deg) translate(11px, 6px);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    color: #1E3A8A;
    transform: rotate(-45deg) translate(11px, -6px);
}

/* Footer */
.footer {
    background: #1E3A8A;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-contact p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
}

.footer-contact p:first-child {
    font-weight: 400;
    margin-bottom: 1rem;
    text-decoration: none;
}
.ft-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.footer-icon {
    width: 36px;
    height: 36px;
    vertical-align: middle;
}

/* Responsive Design */
@media (min-width: 1601px){
    .hero-logo img {
        width: 800px;
        height: 400px;
    }

}
@media (min-width: 1401px) and (max-width: 1600px) {
    .hero-logo img {
        width: 450px;
        height: 225px;
    }
    .hero-content {
      margin-bottom: 200px;
    }

}
@media (max-width: 1400px) {
    .hero-logo img {
        width: 400px;
        height: 200px;
    }
    .hero-content {
        margin-bottom: 120px;
    }

}
@media (max-width: 1120px) {
    .feature-image{
        max-width: 300px;
    }
    .feature-content h3 {
        max-width: 400px;
    }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .ham-menu {
        display: block ;
    }
 
    .nav {
        display: flex;
        justify-content: space-between; /* Distribuye los elementos a los extremos */
        align-items: center; /* Centra verticalmente los elementos */
        color: white; /* Color del texto */
    }
    .logo-header {
        vertical-align: middle;
    }
    

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0 40px;
        margin-bottom: 200px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle{
        font-size: 1.2rem;
        margin: 0;
        width: 150px;
        text-align: left;
    }

    .hero-logo  img{
        width: 350px;
        height: 175px;
    }
    
    .section-header h2,
    .audience-section h2,
    .features-section h2,
    .why-choose-section h2 {
        font-size: 1.5rem;
    }

    .section-description,
    .audience-section p,
    .audience-item h3,
    .key-feature h3,
    .why-choose-section > .container > p,
    .cta-section p:first-child,
    .cta-subtitle {
        font-size: 1.2rem;
    }

    .feature-content h3 {
        font-size: 1.09rem;
    }

    .benefit-text {
        font-size: 1.25rem;
    }
    .cta-button,
    .key-feature p,
    .footer-contact p
    {
        font-size: 0.95rem;
    }
    .key-feature-icon{
        max-width: 120px;
        max-height: 120px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: row;
        text-align: center;
        padding: 15px;
    }


    .feature-content h3{
        max-width: 350px;
    }

    .feature-image {
        max-width: 250px;
    }

   /* .audience-grid {
        grid-template-columns: 1fr;
    }
    .audience-image {
            width: 300px;
            height: 300px;
    }*/
    .key-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))
    }

    .benefits-list {
        padding: 0 1rem;
    }
}

@media (max-width: 695px){
    .section-header h2,
    .audience-section h2,
    .features-section h2,
    .why-choose-section h2 {
        font-size: 1.4rem;
        padding: 0.7rem 1.2rem;
    }

    .section-description,
    .audience-section p,
    .audience-item h3,
    .key-feature h3,
    .why-choose-section > .container > p,
    .cta-section p:first-child,
    .cta-subtitle {
        font-size: 1.05rem;
    }

    .feature-content h3 {
        font-size: 1rem;
    }

    .benefit-text {
        font-size: 1.1rem;
    }
    .cta-button,
    .key-feature p,
    .footer-contact p
    {
        font-size: 0.85rem;
    }
    .audience-image {
        max-width: 200px;
        max-height: 200px;
    }
    .audience-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .key-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 554px){
    .section-header h2,
    .audience-section h2,
    .features-section h2,
    .why-choose-section h2 {
        font-size: 1.3rem;
        padding: 0.7rem 1.2rem;
    }

    .section-description,
    .audience-section p,
    .audience-item h3,
    .key-feature h3,
    .why-choose-section > .container > p,
    .cta-section p:first-child,
    .cta-subtitle {
        font-size: 1rem;
    }

    .feature-content h3 {
        font-size: 0.8rem;
    }

    .benefit-text {
        font-size: 1.05rem;
    }
    .cta-button,
    .key-feature p,
    .footer-contact p
    {
        font-size: 0.85rem;
    }
    .audience-image {
        max-width: 175px;
        max-height: 175px;
    }
    .audience-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .key-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .feature-image {
        max-width: 200px;
    }
    .feature-number {
        font-size: 2.8rem;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle, .hero-text {
        margin: 0;
    }
    .hero{
        max-width: 100%; /* Ajusta el ancho al 100% del contenedor */
        height: auto; /* Mantiene la proporción de la imagen */
        object-fit: contain; /* Asegura que la imagen no se corte */
        background-position: bottom;
    }
    .hero-content{
        align-items: center;
        margin-bottom: 10rem;
        margin-top: 5rem;
    }
    .hero-logo img{
        width: 200px;
        height: 100px;
    }

    .feature-number {
        margin-right: 0;
    }

    .audience-section h2,
    .features-section h2 {
        margin-left: auto;
        margin-right: auto;
    }

    .section-header h2,
    .audience-section h2,
    .features-section h2,
    .why-choose-section h2 {
        font-size: 1rem;
        padding: 0.4rem 1.1rem;
    }
    .section-description,
    .audience-section p,
    .audience-item h3,
    .key-feature h3,
    .why-choose-section > .container > p,
    .cta-section p:first-child,
    .benefit-text,
    .cta-subtitle
    {
        font-size: 0.9rem;
    }

    .feature-image {
        max-width: 250px;
        vertical-align: middle;
    }

    /* Estilo específico para el item-2 */
    .custom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .custom-item .feature-image {
        order: -1; /* La imagen aparece primero */
    }

    .custom-item .feature-number {
        order: 0; /* El número aparece después de la imagen */
    }

    .custom-item .feature-content {
        order: 1; /* El texto aparece al final */
    }

    .key-feature p,
    .footer-contact p:first-child,
    .footer-contact p
    {
        font-size: 0.9rem;
    }
    .audience-section p,
    .section-description,
    .why-choose-section > .container > p,
    .section-header h2,
    .why-choose-section h2,
    .benefit-item{
        text-align: justify;
    }
    .logo-blanco,
    .logo-color {
        max-width: 60px;
        max-height: 60px;
    }

    .benefit-text {
        background: #00a0d0;
        border-radius: 40px;
        padding: 0.4rem 1.2rem;
    }

    .feature-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .audience-item {
        padding: 1.5rem;
    }

    .key-feature {
        padding: 1.5rem;
    }
    .benefits-list {
        padding: 0;
    }
}
@media (max-width: 446px) {
    .benefit-text {
        padding: 5px;
    }
    .contact-info {
        flex-direction: column;
        gap: 0;
    }
    .contact-email, .contact-phone {
        margin-bottom: 0 !important;
    }
}
@media (max-width: 418px) {
    .benefit-text {
        padding: 3px;
        font-size: 0.8rem;
    }

}
@media (max-width: 376px) {
    .benefit-text {
        background: transparent;
        padding: 0%;
    }
    .benefit-item {
        background: #00a0d0;
        border-radius: 15px;
        padding: 5px;
    }
    .benefits-list {
        align-items: center;
    }

}

@media (max-width: 338px) {

    .why-choose-header, .section-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .logo-blanco{
        max-width: 50px;
        max-height: 50px;
    }
}
