* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Estilos para el logo fijo */
.logo-fixed {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 2000;
    cursor: pointer;
    transition: transform 0.3s;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #2E86C1;
}

.logo-fixed:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.logo-image-fixed {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

header {
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding-left: 90px; /* Espacio para el logo fijo */
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(46, 134, 193, 0.95);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    color: white;
    padding: 150px 2rem 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="0,0 1000,50 1000,100 0,100"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #2E86C1;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2E86C1;
}

.btn-project {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(46, 134, 193, 0.4);
}

.btn-project:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(46, 134, 193, 0.6);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2E86C1;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    border-radius: 2px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2E86C1;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Estilos para la sección "Sobre Nosotros" - Misión, Visión y Valores */
.about {
    background: #f8f9fa;
    padding: 4rem 2rem;
}

/* Eliminamos los estilos antiguos de about-content */
.about-content {
    display: none;
}

/* Estilos para Misión, Visión y Valores */
.mission-vision-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 30px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #2E86C1;
}

.mission-vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.mission-vision-card.vision {
    border-top-color: #2E86C1;
    border-left: 4px solid #2E86C1;
}

.mission-vision-card.mission {
    border-top-color: #5DADE2;
    border-left: 4px solid #5DADE2;
}

.mission-vision-card h3 {
    color: #1a3a5f;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
    position: relative;
}

.mission-vision-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
}

.mission-vision-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.values-section {
    margin: 60px 0 40px;
}

.values-title {
    text-align: center;
    color: #1a3a5f;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.values-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    border-radius: 2px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.value-item {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-item:hover::before {
    transform: scaleX(1);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-item h4 {
    color: #1a3a5f;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.value-item p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Estilos para la sección de Nuestro Equipo */
.team-section {
    margin: 60px 0 40px;
}

.team-title {
    text-align: center;
    color: #1a3a5f;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.team-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
}

.team-member {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 220px;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #2E86C1;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .team-photo img {
    transform: scale(1.1);
}

.team-info h4 {
    color: #1a3a5f;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.team-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Estadísticas (mantenidas) */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 60px;
    background: linear-gradient(135deg, #1a3a5f 0%, #2E86C1 100%);
    padding: 40px;
    border-radius: 15px;
    color: white;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Contacto */
.contact {
    background: #f8f9fa;
}

.contact-simple {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-simple h2 {
    color: #2E86C1;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    position: relative;
}

.contact-simple h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    border-radius: 2px;
}

.contact-simple p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #555;
    line-height: 1.6;
}

.contact-details-simple {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-item-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.contact-icon-large {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
    color: white;
    border-radius: 50%;
}

.contact-item-simple a {
    color: #2E86C1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-item-simple a:hover {
    color: #5DADE2;
    text-decoration: underline;
}

.contact-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-style: italic;
    color: #666;
    border-left: 4px solid #2E86C1;
}

.contact-note strong {
    color: #2E86C1;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo p {
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #2E86C1 0%, #5DADE2 100%);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Ajustes responsivos para el logo fijo */
    .logo-fixed {
        top: 10px;
        left: 10px;
        padding: 5px;
    }
    
    .logo-image-fixed {
        width: 45px;
        height: 45px;
    }
    
    header {
        padding-left: 70px;
    }
    
    /* Ajustes para la sección de contacto */
    .contact-item-simple {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .contact-simple {
        padding: 3rem 1rem;
    }
    
    /* Ajustes para Misión, Visión y Valores en móvil */
    .mission-vision-card {
        padding: 25px 20px;
    }
    
    .mission-vision-card h3 {
        font-size: 1.6rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .value-item {
        padding: 25px 20px;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 25px;
    }
    
    /* Ajustes para la sección del equipo en móvil */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-member {
        max-width: 100%;
    }
    
    .team-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .logo-fixed {
        top: 8px;
        left: 8px;
    }
    
    .logo-image-fixed {
        width: 40px;
        height: 40px;
    }
    
    header {
        padding-left: 60px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    /* Ajustes para la sección del equipo en móvil pequeño */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
}