* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barra azul superior */
.top-bar {
    background: linear-gradient(90deg, #0047AB 0%, #003d99 100%);
    padding: 15px 0;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    padding-left: 50px;
}

.social-links a {
    color: white;
    font-size: 24px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    outline: none;
}

.social-links a i {
    text-decoration: none;
    border: none;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Menú principal blanco con diseño redondeado */
.main-nav {
    background: transparent;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 100;
}

.nav-wrapper {
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 95%;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #0047AB;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: color 0.3s;
    text-transform: uppercase;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

.nav-menu a.active {
    color: #FF4500;
}

.nav-menu a:hover {
    color: #FF4500;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Carrusel de imágenes */
.carousel {
    position: relative;
    width: 100%;
    height: 750px;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido del carrusel */
.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 5;
    max-width: 900px;
    text-align: left;
    width: 90%;
}

.carousel-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-text {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.carousel-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Flechas de navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    border-radius: 5px;
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

/* Puntos indicadores */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #FF5722;
    width: 10px;
    height: 10px;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Sección de Objetivos */
.objectives-section {
    padding: 80px 0 0 0;
    background-color: #f8f9fa;
}

.objectives-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

.objectives-left {
    padding-right: 20px;
}

.objective-main-title {
    color: #FF5722;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.objective-main-text {
    color: #333;
    font-size: 17px;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 500;
}

.objective-sub-title {
    color: #FF5722;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.objective-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF5722;
    font-size: 24px;
}

.objective-item p {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding-top: 5px;
    font-weight: 500;
}

.objectives-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.objectives-right img {
    max-width: 85%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 0;
    display: block;
}

/* Sección de Contacto */
.contact-banner {
    position: relative;
    background-image: url('../img/banner-azul-contacto.webp');
    background-size: cover;
    background-position: center;
    padding: 55px 0;
    overflow: hidden;
    margin-top: -20px;
}

.contact-overlay {
    display: none;
}

.contact-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.contact-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: inline;
}

.contact-text p {
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    display: inline;
    margin-left: 8px;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 600;
}

.contact-phone i {
    font-size: 26px;
}

.contact-phone a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-phone a:hover {
    opacity: 0.8;
}

/* Menú móvil desplegable */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 280px;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.mobile-menu-header img {
    height: 55px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 30px 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #d0d0d0;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 22px 30px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.mobile-nav-menu a:hover {
    background-color: #f8f9fa;
    padding-left: 35px;
}

.mobile-nav-menu i {
    font-size: 22px;
    color: #0047AB;
    min-width: 25px;
}

/* Overlay para cerrar menú */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        border-radius: 30px;
        padding: 12px 20px;
    }

    .main-nav {
        top: 40px;
    }

    .carousel {
        height: 500px;
    }

    .carousel-arrow {
        padding: 10px 15px;
        font-size: 18px;
    }

    .carousel-arrow.prev {
        left: 15px;
    }

    .carousel-arrow.next {
        right: 15px;
    }

    .carousel-dots {
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        padding-left: 0;
    }

    .nav-wrapper {
        max-width: 90%;
    }

    .main-nav {
        top: 35px;
        padding: 15px 0;
    }

    .carousel {
        height: 550px;
    }

    .carousel-content {
        width: 85%;
    }

    .carousel-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .carousel-text {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .carousel-subtitle {
        font-size: 14px;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .dot.active {
        width: 9px;
        height: 9px;
    }

    .objectives-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .objectives-left {
        padding-right: 0;
    }

    .objective-main-title {
        font-size: 28px;
    }

    .objective-main-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .objective-sub-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .objective-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .objective-item {
        gap: 15px;
        margin-bottom: 20px;
    }

    .objective-item p {
        font-size: 15px;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .contact-banner {
        padding: 30px 0;
    }

    .contact-text h3 {
        font-size: 20px;
        display: block;
        margin-bottom: 5px;
    }

    .contact-text p {
        font-size: 20px;
        display: block;
        margin-left: 0;
    }

    .contact-phone {
        font-size: 18px;
    }

    .contact-phone i {
        font-size: 24px;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

/* Sección de Programas y Beneficios */
.programs-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.programs-title {
    color: #FF5722;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.program-card {
    position: relative;
    height: 350px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
}

.program-card:hover {
    transform: scale(1.02);
    z-index: 10;
}

.program-card.coming-soon {
    cursor: pointer;
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(138, 43, 226, 0.5);
    z-index: 1;
}

.program-card:nth-child(1) .program-overlay {
    background: rgba(138, 43, 226, 0.5);
}

.program-card:nth-child(2) .program-overlay {
    background: rgba(255, 140, 0, 0.5);
}

.program-card:nth-child(3) .program-overlay {
    background: rgba(138, 43, 226, 0.5);
}

.program-card:nth-child(4) .program-overlay {
    background: rgba(255, 140, 0, 0.5);
}

.program-card:nth-child(5) .program-overlay {
    background: rgba(138, 43, 226, 0.5);
}

.program-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    z-index: 2;
}

.program-content h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive para Programas */
@media (max-width: 968px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .program-card {
        height: 300px;
    }

    .program-content h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .programs-section {
        padding: 60px 0;
    }

    .programs-title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .program-card {
        height: 250px;
    }

    .program-content {
        padding: 20px;
    }

    .program-content h3 {
        font-size: 15px;
    }
}

/* Footer */
.footer-section {
    position: relative;
    color: white;
    margin-top: 0;
}

.footer-content {
    background-image: url('../img/Fondo-fotter-comedica.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 100px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 0;
}

.footer-logo {
    height: 60px;
    margin-bottom: 30px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-item i {
    color: white;
    font-size: 16px;
    margin-top: 2px;
    min-width: 16px;
}

.footer-center h3,
.footer-right h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-links i {
    font-size: 14px;
    color: #FF5722;
    font-weight: 900;
}

.footer-copyright {
    background-image: url('../img/copiright-Comedica.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 25px 0;
}

.copyright-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.copyright-content p {
    font-size: 13px;
    margin: 0;
    color: white;
}

.creative-logo {
    height: 30px;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-left {
        grid-column: 1 / -1;
    }

    .creative-logo {
        height: 25px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 90px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 40px 0 30px 0;
        background-image: none;
        background-color: #0047AB;
        background-size: cover;
        background-position: top center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-logo {
        height: 50px;
        margin-bottom: 25px;
    }

    .contact-item {
        font-size: 13px;
    }

    .contact-item i {
        font-size: 14px;
    }

    .footer-center h3,
    .footer-right h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-copyright {
        padding: 20px 0;
        background-image: none;
        background-color: #003d99;
        background-size: cover;
        background-position: center;
    }

    .copyright-content {
        flex-direction: column;
        gap: 10px;
    }

    .copyright-content p {
        font-size: 11px;
        text-align: center;
        line-height: 1.5;
    }

    .creative-logo {
        height: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 15px;
    }
}

/* Modal Próximamente */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF5722 0%, #FF8A65 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.modal-icon i {
    font-size: 40px;
    color: white;
}

.modal-content h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-button {
    background: linear-gradient(135deg, #0047AB 0%, #003d99 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 71, 171, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 40px 30px;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
    }

    .modal-icon i {
        font-size: 35px;
    }

    .modal-content h2 {
        font-size: 24px;
    }

    .modal-content p {
        font-size: 15px;
    }
}
