/* ===== 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: -8px;
    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: 30px;
    height: 3px;
    background: #0052a3;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: 
        linear-gradient(135deg, rgba(0, 82, 163, 0.85) 0%, rgba(0, 123, 255, 0.85) 100%),
        url('../images/paisajecieloturbinas.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/paisajecieloturbinas.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    z-index: -1;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

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

.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.4);
    position: relative;
    z-index: 2;
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 5rem 0;
    position: relative;
}

/* ===== GALERÍA DE SERVICIOS ===== */
.galeria-servicios {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

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

.servicio-galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    transform: translateY(0);
}

.servicio-galeria-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.servicio-img-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.servicio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9);
}

.servicio-galeria-item:hover .servicio-img-container img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.servicio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 82, 163, 0.95));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.servicio-galeria-item:hover .servicio-overlay {
    transform: translateY(0);
}

.servicio-overlay h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.servicio-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* ===== SERVICIOS EÓLICOS ===== */
.servicios-eolicos {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.eolicos-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.eolico-galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(0, 82, 163, 0.15);
    transition: all 0.4s ease;
    transform: translateY(0);
    border: 2px solid rgba(0, 82, 163, 0.1);
}

.eolico-galeria-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 45px rgba(0, 82, 163, 0.25);
    border: 2px solid rgba(0, 82, 163, 0.3);
}

.eolico-img-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.eolico-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.95) saturate(1.05);
}

.eolico-galeria-item:hover .eolico-img-container img {
    transform: scale(1.04);
    filter: brightness(0.8) saturate(1.1);
}

.eolico-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 82, 163, 0.9));
    color: white;
    padding: 1.8rem;
    transform: translateY(80%);
    transition: all 0.4s ease;
}

.eolico-galeria-item:hover .eolico-overlay {
    transform: translateY(0);
}

.eolico-overlay h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.eolico-overlay p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.4;
}

/* ===== SERVICIOS CON IMÁGENES ===== */
.servicio-card:nth-child(1) {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 249, 250, 0.92) 100%),
        url('../images/grandescorrectivosnoche.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: local;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    border: 2px solid rgba(0, 82, 163, 0.1);
}

.servicio-card:nth-child(1):hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 82, 163, 0.3);
}

.servicio-card:nth-child(2) {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 249, 250, 0.92) 100%),
        url('../images/grandescorrectivosdron.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: local;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    border: 2px solid rgba(0, 82, 163, 0.1);
}

.servicio-card:nth-child(2):hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 82, 163, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SECCIÓN SERVICIOS ===== */
.servicios-principales {
    background: #ffffff;
    padding: 5rem 0;
}

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

.servicio-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;
    overflow: hidden;
    z-index: 2;
}

.servicio-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;
}

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

.servicio-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;
}

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

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

.servicio-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 3;
}

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

.servicio-lista {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.servicio-lista li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.servicio-lista li i {
    position: absolute;
    left: 0;
    color: #0052a3;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-servicio {
    background: #0052a3;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.btn-servicio:hover {
    background: #004c99;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 163, 0.3);
}

/* ===== SECCIÓN PROCESO ===== */
.proceso-trabajo {
    background: #f8f9fa;
    padding: 5rem 0;
}

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

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

.proceso-step {
    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;
}

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

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

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0052a3, #004c99);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

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

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

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

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

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

.ventaja-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;
}

.ventaja-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;
}

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

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

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

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

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

/* ===== SECCIÓN CTA ===== */
.cta-section {
    background: linear-gradient(135deg, #0052a3 0%, #004c99 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #ffffff;
    color: #0052a3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== 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;
    }

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

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

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

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

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

    .servicio-card {
        padding: 2rem;
    }

    .proceso-step {
        padding: 1.5rem;
    }
}

/* ===== SECCIÓN GRANDES CORRECTIVOS ===== */
.grandes-correctivos-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.servicio-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.servicio-buttons .btn-servicio {
    flex: 1;
    min-width: 200px;
}



 
