/* ===== RESET Y CONFIGURACIÓN BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #ffffff;
    font-weight: 400;
    font-size: 14px; /* Tamaño base más pequeño como Vestas */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0; /* Reducido de 1rem */
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e5e5; /* Más sutil */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 160px; /* Aumentado para mejor visibilidad */
    height: auto;
    max-height: 55px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem; /* Reducido de 2.5rem */
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px; /* Más pequeño como Vestas */
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #0052a3;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0052a3;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: 
        linear-gradient(135deg, rgba(0, 82, 163, 0.8) 0%, rgba(0, 123, 255, 0.8) 100%),
        url('../images/paisajeverdeturbinas.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/paisajeverdeturbinas.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    z-index: -1;
    animation: subtleFloat 25s ease-in-out infinite alternate;
}

@keyframes subtleFloat {
    0% { transform: scale(1) translateY(0px); }
    100% { transform: scale(1.03) translateY(-10px); }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* ===== HISTORIA SECTION ===== */
.historia {
    padding: 4rem 0; /* Reducido de 5rem */
}

.historia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.historia-text h2 {
    font-size: 2rem; /* Reducido de 2.5rem */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.historia-text p {
    font-size: 0.95rem; /* Reducido de 1rem */
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.logros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.logro {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.logro:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.logro .numero {
    font-size: 2rem; /* Reducido de 2.5rem */
    font-weight: 700;
    color: #0052a3;
    display: block;
    margin-bottom: 0.5rem;
}

.logro .texto {
    font-size: 0.85rem; /* Reducido de 0.9rem */
    color: #666666;
    font-weight: 500;
}

.historia-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px dashed #dee2e6;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.image-placeholder i {
    font-size: 3rem; /* Reducido de 4rem */
    color: #0052a3;
    margin-bottom: 1rem;
    z-index: 2;
}

.image-placeholder p {
    font-size: 0.9rem; /* Reducido de 1rem */
    color: #666666;
    z-index: 2;
}

/* Estilos para imagen real */
.historia-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    object-fit: cover;
    max-height: 400px;
}

.historia-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

/* ===== SECCIÓN MISIÓN VISIÓN ===== */
.mision-vision {
    padding: 5rem 0;
    background: #f8f9fa;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
    position: relative;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0052a3, #004c99);
    border-radius: 12px 12px 0 0;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #0052a3;
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0052a3, #004c99);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.mv-card:hover .mv-icon {
    transform: scale(1.1);
}

.mv-icon i {
    font-size: 2rem;
    color: white;
}

.mv-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.mv-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.mv-card ul {
    list-style: none;
    text-align: left;
}

.mv-card li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mv-card strong {
    color: #0052a3;
    font-weight: 600;
}

/* ===== SECCIÓN EQUIPO ===== */
.equipo {
    padding: 5rem 0;
    background: #ffffff;
}

.equipo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.equipo-desc {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.miembro {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
    position: relative;
}

.miembro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0052a3, #004c99);
    border-radius: 12px 12px 0 0;
}

.miembro:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #0052a3;
}

.miembro-foto {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0052a3, #004c99);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.miembro:hover .miembro-foto {
    transform: scale(1.1);
}

.miembro-foto i {
    font-size: 2rem;
    color: white;
}

.miembro h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.cargo {
    font-size: 1rem;
    color: #0052a3;
    font-weight: 600;
    margin-bottom: 1rem;
}

.descripcion {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== SECCIÓN CERTIFICACIONES ===== */
.certificaciones {
    padding: 5rem 0;
    background: #f8f9fa;
}

.certificaciones h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
    position: relative;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0052a3, #004c99);
    border-radius: 12px 12px 0 0;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #0052a3;
}

.cert-item i {
    font-size: 3rem;
    color: #0052a3;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.cert-item:hover i {
    transform: scale(1.1);
}

.cert-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.cert-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 3rem 0 1rem;
    border-top: 3px solid #0052a3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 180px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.footer-section h3,
.footer-section h4 {
    color: #0052a3;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #0052a3;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #0052a3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #004c99;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #bdc3c7;
}

/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: block;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        border-top: 1px solid #0052a3;
    }

    .nav-menu.active {
        left: 0;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .historia-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .logros {
        grid-template-columns: 1fr;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .equipo-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .historia-text h2 {
        font-size: 2rem;
    }

    .mv-card {
        padding: 2rem;
    }

    .miembro {
        padding: 1.5rem;
    }
} 


