/* Estilos base */
:root {
    --primary: #2C3E50;
    --secondary: #34495E;
    --accent: #F3C623;
    --accent-light: #FFB22C;
    --accent-dark: #FA812F;
    --background-light: #FEF3E2;
    --text-dark: #333;
    --text-light: #f1faee;
    --gray: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: white;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    padding: 10px 0;
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    transition: height 0.3s ease-in-out;
}

.navbar.scrolled .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.nav-links a:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-links a.active-link {
    color: var(--accent-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-dark);
    padding-bottom: 8px;
}

.nav-links a[href*="webmail"] {
    background-color: var(--primary);
    color: white;
}

.desktop-cta {
    margin-left: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(243, 198, 35, 0.3);
}

.cta-button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(243, 198, 35, 0.4);
}

/* Hero "Nosotros" */
.hero {
    height: 80vh;
    min-height: 600px;
    margin-top: 75px;
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
}

.hero-slider {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.slide {
    min-width: 25%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    flex-shrink: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: 1.4rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Contenido principal "Quiénes Somos" */
.about-section {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text-content .section-title h2::after {
    left: 0;
    transform: translateX(0);
}

.about-text-content p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: rotate(3deg);
    transition: all 0.3s ease;
}

.about-image-content img:hover {
    transform: rotate(0) scale(1.05);
}

/* Tarjetas Misión y Visión */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: var(--background-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #EAEAEA;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
    display: inline-block;
    background: white;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.mv-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--text-dark);
    font-size: 1rem;
}

/* Equipo */
.team-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.team-img {
    height: 320px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.team-member:hover .team-img {
    transform: scale(1.1);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h4 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 1rem;
}

/* Certificaciones */
.certifications-section {
    background-color: white;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.certification-item img {
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.certification-item h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.certification-item p {
    font-size: 0.95rem;
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    font-size: 1rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-light);
    border-radius: 2px;
}

.footer-links,
.policy-links,
.contact-info {
    list-style: none;
    padding-left: 0;
}

.footer-links li,
.policy-links li,
.contact-info li {
    margin-bottom: 15px;
}

.footer-links a,
.policy-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.policy-links a {
    font-weight: bold;
    font-size: 0.9rem;
}

.policy-links a:hover {
    color: var(--accent);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
}

.contact-info i {
    margin-right: 15px;
    color: var(--accent-light);
    font-size: 1.2em;
    flex-shrink: 0;
    padding-top: 3px;
}

.contact-info a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text-content .section-title {
        text-align: center;
    }
    .about-text-content .section-title h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-image-content {
        margin-top: 40px;
    }
    .about-image-content img {
        transform: rotate(0);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        transition: transform 0.3s ease;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary);
    }

    .menu-toggle.active {
        transform: rotate(90deg);
        color: var(--accent-dark);
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
        opacity: 0;
        z-index: 1000;
        border-radius: 0 0 15px 15px;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 15px 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        width: 90%;
        margin: 5px auto;
        padding: 12px 20px;
        border-radius: 8px;
        background: rgba(243, 198, 35, 0.1);
        border: none;
        display: block;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--accent);
        transform: translateX(8px);
    }

    .nav-links a[href*="webmail"] {
        background: var(--primary);
        color: white;
        margin-top: 10px;
    }

    .nav-links a[href*="webmail"]:hover {
        background: var(--secondary);
    }

    .hero {
        height: 70vh;
        min-height: 500px;
        margin-top: 65px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }
}