* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Barra superior azul */
.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;
}

/* Banner */
.banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    display: none;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    z-index: 10;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

/* Sección de contenido */
.content-section {
    padding: 50px 0 30px 0;
    background: #f9f9f9;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.content-text {
    padding-right: 20px;
}

.section-title {
    color: #ff6b35;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.subsection-title {
    color: #ff6b35;
    font-size: 1.1rem;
    margin: 25px 0 15px;
    font-weight: 600;
}

.content-text p {
    margin-bottom: 18px;
    text-align: justify;
    line-height: 1.7;
    color: #555;
    font-size: 14px;
}

.content-image {
    position: relative;
}

.content-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Sección Objetivo */
.objective-section {
    padding: 30px 0 60px 0;
    background: white;
}

.section-title-center {
    text-align: center;
    color: #ff6b35;
    font-size: 1.6rem;
    margin-bottom: 35px;
    font-weight: 700;
}

.objective-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.objective-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.objective-text p {
    margin-bottom: 18px;
    text-align: justify;
    line-height: 1.7;
    color: #555;
    font-size: 14px;
}

.campus-title {
    color: #1e3c72;
    font-size: 1.2rem;
    margin: 25px 0 12px;
    font-weight: 700;
}

.campus-description {
    font-style: italic;
    color: #666;
    font-size: 13px;
}

/* 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 li {
    margin-bottom: 0;
}

.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);
}

/* 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;
    }

    .social-links {
        justify-content: center;
        padding-left: 0;
    }

    .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) {
    .social-links {
        justify-content: center;
        padding-left: 0;
    }

    .nav-wrapper {
        max-width: 90%;
    }

    .main-nav {
        top: 35px;
        padding: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .banner {
        height: 400px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .content-wrapper,
    .objective-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title-center {
        font-size: 1.6rem;
    }

    .footer-content {
        padding: 40px 0 30px 0;
        background-image: none;
        background-color: #0047AB;
    }

    .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;
    }

    .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;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}
