:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray: #f5f5f5;
    --color-darkgray: #333333;
    --color-pink: #ffd0e0;
    --color-purple: #9370db;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-darkgray);
    background: var(--color-white);
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #2a2a2a, #333333, #2a2a2a);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: linear-gradient(135deg, #2c2c2c, #333333, #2c2c2c);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    background: linear-gradient(90deg, #ffffff 50%, var(--color-pink) 50%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    background: linear-gradient(135deg, #333333, #3a3a3a, #333333);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 20px;
}

.nav-links a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-purple);
    background: linear-gradient(135deg, rgba(255,208,224,0.15), rgba(147,112,219,0.15));
}

.nav-links a:hover:before {
    width: 100%;
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(255,208,224,0.2), rgba(147,112,219,0.2));
    color: var(--color-pink);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(120deg, #2c2c2c, #333333, #2c2c2c);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 10px;
    padding: 10px 0;
    border: 1px solid rgba(147, 112, 219, 0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 8px 15px;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--color-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.dropdown-menu li a:hover {
    background: linear-gradient(135deg, rgba(255,208,224,0.15), rgba(147,112,219,0.15));
    color: var(--color-pink);
    transform: translateX(5px);
}

.nav-links li a i {
    margin-left: 4px;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-links li:hover > a i {
    transform: rotate(-180deg);
}

/* Utility bar */
.utility-bar {
    display: flex;
    align-items: center;
}

.search-form {
    position: relative;
    margin-right: 20px;
}

.search-form input {
    background: #2c2c2c;
    color: var(--color-white);
    border: 1px solid #444;
    padding: 8px 15px;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
    width: 200px;
}

.search-form input::placeholder {
    color: #888;
}

.search-form input:focus {
    border-color: var(--color-purple);
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
}

.user-actions {
    display: flex;
}

.user-actions a {
    margin-left: 15px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.2rem;
    opacity: 0.8;
}

.user-actions a:hover {
    color: var(--color-purple);
    opacity: 1;
}

/* Hero Section */
.page-hero {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/api/placeholder/1920/1080') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    color: var(--color-white);
    animation: fadeIn 1s ease-in;
}

.page-hero h1 {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-section {
    padding: 5rem 5%;
    background-color: var(--color-white);
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-heading h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Mission Vision Values */
.mvv-section {
    padding: 5rem 5%;
    background-color: var(--color-gray);
}

.mvv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mvv-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-10px);
}

.mvv-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-purple);
}

.mvv-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
}

.mvv-card h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
}

.mvv-card p {
    color: #666;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 5rem 5%;
    background-color: var(--color-white);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-img {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-img img:hover {
    transform: scale(1.05);
}

.member-info {
    flex: 1;
    padding: 1rem;
}

.member-info h3 {
    font-size: 2rem;
    color: var(--color-darkgray);
    margin-bottom: 0.5rem;
}

.member-position {
    font-size: 1.2rem;
    color: var(--color-purple);
    margin-bottom: 1.5rem;
}

.member-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-darkgray);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .team-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .member-img {
        width: 250px;
        height: 250px;
        margin-bottom: 1.5rem;
    }
}

.team-member {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-img img {
    transform: scale(1.1);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    font-family: var(--font-secondary);
    margin-bottom: 5px;
}

.member-position {
    color: var(--color-purple);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f5f5f5;
    color: var(--color-darkgray);
    border-radius: 50%;
    margin: 0 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
    color: var(--color-white);
    transform: translateY(-3px);
}

/* History Timeline */
.history-section {
    padding: 5rem 5%;
    background-color: var(--color-gray);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, var(--color-pink), var(--color-purple));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::after {
    right: -13px;
}

.timeline-right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background: var(--color-white);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    font-family: var(--font-secondary);
    margin-bottom: 10px;
    color: var(--color-purple);
}

.timeline-content p {
    line-height: 1.6;
    color: #666;
}

.timeline-year {
    position: absolute;
    top: -10px;
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.timeline-left .timeline-year {
    right: 10px;
}

.timeline-right .timeline-year {
    left: 10px;
}

/* Footer */
footer {
    background-color: var(--color-darkgray);
    color: var(--color-white);
    padding: 3rem 5% 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-family: var(--font-secondary);
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--color-pink);
}

.footer-social {
    display: flex;
    margin-top: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #444;
    color: var(--color-white);
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 20px;
    }
    
    .timeline-right {
        left: 0;
    }
    
    .timeline-left .timeline-year,
    .timeline-right .timeline-year {
        left: 20px;
    }
}

/* Estilos específicos para móvil */
@media (max-width: 992px) {
    /* Ajustes del menú hamburguesa */
    .menu-btn {
        display: block !important;
        font-size: 24px;
        cursor: pointer;
        color: var(--color-white);
        background: transparent;
        border: none;
        padding: 10px;
        z-index: 1001;
        position: relative;
    }

    .menu-btn i {
        color: var(--color-white);
    }

    /* Resto de estilos del menú móvil */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #1e1e1e !important;
        padding: 0;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 15px 20px;
        width: 100%;
        display: flex;
        align-items: center;
        color: #ffffff !important;
        font-weight: 500;
        text-transform: none;
        font-size: 16px;
        background: transparent;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: rgba(147, 112, 219, 0.15) !important;
        color: var(--color-purple) !important;
    }

    /* Ocultar dropdowns en móvil */
    .dropdown-menu {
        display: none !important;
    }

    /* Ocultar íconos de dropdown en móvil */
    .dropdown i.fa-chevron-down {
        display: none;
    }

    /* Mejorar contraste y legibilidad */
    .nav-links li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 576px) {
    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .nav-links a {
        padding: 12px 15px;
    }
}

/* Achievements Section */
.achievements-section {
    padding: 5rem 5%;
    background-color: var(--color-white);
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-item {
    text-align: center;
    padding: 30px 15px;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-10px);
}

.achievement-icon {
    font-size: 3rem;
    color: var(--color-purple);
    margin-bottom: 15px;
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-darkgray);
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.achievement-title {
    color: #666;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/api/placeholder/1920/1080') center/cover;
    padding: 5rem 5%;
    text-align: center;
    color: var(--color-white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(147, 112, 219, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}