/* Variables de diseño moderno */
:root {
    --primary: #2563eb;     /* Azul más vibrante */
    --primary-dark: #1d4ed8; 
    --secondary: #60a5fa;   /* Celeste más suave */
    --light: #f8fafc;      /* Blanco roto más frío */
    --white: #ffffff;      /* Blanco puro */
    --dark: #1e293b;       /* Azul oscuro para texto */
    --gray-100: #f1f5f9;   /* Gris claro para fondos */
    --gray-200: #e2e8f0;   /* Gris medio */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Slider de trabajos */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem 0 1.5rem 0;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.slider-arrow {
    background: rgba(37,99,235,0.8);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 0.2em 0.45em;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.slider-arrow:hover {
    background: #ff0000;
    transform: scale(1.13);
}
.slider-window {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.slider-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    position: absolute;
    left: 0; top: 0;
    opacity: 0;
}
.slider-img.active {
    display: block;
    opacity: 1;
    position: relative;
    z-index: 1;
    animation: sliderFadeIn 0.5s;
}
@keyframes sliderFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive slider */
@media (max-width: 600px) {
    .slider-container {
        max-width: 98vw;
    }
    .slider-window {
        max-width: 95vw;
    }
}

/* Modal galería */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(20, 20, 35, 0.85);
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.gallery-modal.active {
    display: flex;
}
.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-modal-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    background: #fff;
    padding: 0.5rem;
}
.gallery-modal-close {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.gallery-modal-close:hover {
    color: #ff0000;
}

/* Header y Navegación */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo h1 {
    color: #ff0000; /* Rojo */
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.lightning-icon {
    color: var(--primary);
    margin-right: 12px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    vertical-align: middle;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.logo i::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transform: scale(1.5);
    opacity: 0.7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Estilos para móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 30px 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 12px 0;
        font-size: 1.2rem;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: var(--transition);
    }
    
    .nav-links a:hover {
        color: var(--primary);
        padding-left: 10px;
    }
    
    .cta-button {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }
    
    /* Ajustes adicionales para móviles */
    @media (max-width: 768px) {
        .footer-content {
            grid-template-columns: 1fr;
            gap: 2.5rem;
        }
        
        .footer-logo,
        .footer-links,
        .footer-contact {
            text-align: center;
        }
        
        .footer-logo {
            align-items: center;
        }
        
        .footer-links h3::after,
        .footer-contact h3::after {
            left: 50%;
            transform: translateX(-50%);
        }
        
        .footer-social {
            justify-content: center;
        }
        
        .footer-contact p {
            justify-content: center;
        }
        
        .contact-container {
            flex-direction: column;
            gap: 2rem;
        }
        
        .contact-info,
        .contact-form {
            width: 100%;
        }
    }
    
    @media (max-width: 480px) {
        .nav-links {
            padding: 90px 20px 30px;
        }
        
        .alert {
            width: calc(100% - 40px);
            padding: 0.75rem 1.25rem;
            font-size: 0.9rem;
        }
        
        .footer {
            padding: 2rem 1rem;
        }
    }
}

/* Sección Hero */
.hero {
    min-height: 100vh;
    background: url('fondo electrico.jpg') no-repeat center center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    background-color: #000;
    background-position: center top;
    background-attachment: scroll;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 8px;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    padding: 0.8rem 2rem;
    border-radius: 6px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    max-width: 100%;
}

.cta-button {
display: inline-block;
background: linear-gradient(135deg, #4d6bff, #1a4bff);
color: #ffffff !important;
padding: 1rem 2.5rem;
border-radius: 50px;
font-size: 1.2rem;
font-weight: 600;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 1px;
margin-top: 1rem;
transition: all 0.3s ease;
border: none;
cursor: pointer;
box-shadow: 0 4px 15px rgba(0, 51, 255, 0.3);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0, 68, 255, 0.4);
background: linear-gradient(135deg, #5d7aff, #2a5aff);
}

.cta-button:active {
transform: translateY(1px);
box-shadow: 0 2px 10px rgba(0, 51, 255, 0.3);
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 51, 255, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}



.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Versión alternativa para fondos claros */
.cta-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.cta-button.primary::before {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.cta-button.primary:hover {
    color: white;
}

/* Sección Trabajo */
.work {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.work h2 {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 4rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    left: calc(50% - 3cm);
    transform: translateX(-50%);
}

.work h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.work-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    transition: var(--transition);
    z-index: -1;
}

.work-item:hover::before {
    height: 100%;
    width: 100%;
    opacity: 0.05;
}

.work-item i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.work-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.work-item p {
    color: #64748b;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.work-item .learn-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.work-item .learn-more i {
    font-size: 1rem;
    margin: 0 0 0 0.5rem;
    color: inherit;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.work-item:hover i,
.work-item:hover h3 {
    color: var(--primary);
}

.work-item:hover .learn-more {
    color: var(--primary-dark);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .work {
        padding: 4rem 1.5rem;
    }
    
    .work h2 {
        font-size: 2.25rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 3rem auto 0;
    }
}

.work-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.work-item h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Sección Contacto */
.contact {
    background-color: var(--white);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.contact h2 {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 4rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    left: calc(50% - 3cm);
    transform: translateX(-50%);
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    border: 1px solid var(--gray-200);
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.contact-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    color: #475569;
    line-height: 1.7;
    transition: var(--transition);
}

.contact-info i {
    margin-right: 1.25rem;
    color: var(--primary);
    width: 1.5rem;
    text-align: center;
    margin-top: 0.25rem;
    font-size: 1.25rem;
    transition: var(--transition);
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-dark);
}

.contact-info a:hover::after {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: var(--white);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.submit-btn:hover::before {
    opacity: 1;
}

/* Efecto de carga del botón */
.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos para móvil */
@media (max-width: 768px) {
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .contact h2 {
        font-size: 2.25rem;
    }
    
    .contact-container {
        padding: 2rem 1.5rem;
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

/* Menú móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 30px;
    position: relative;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
    transform-origin: left center;
}

.menu-toggle span:nth-child(2) {
    top: 12px;
    transform-origin: left center;
}

.menu-toggle span:nth-child(3) {
    top: 24px;
    transform-origin: left center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: -3px;
    left: 4px;
}

.menu-toggle.active span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 27px;
    left: 4px;
}

/* Notificaciones */
.alert {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 90%;
    width: max-content;
}

.alert::before {
    content: '';
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-left: 4px solid #047857;
}

.alert-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-left: 4px solid #b91c1c;
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-left: 4px solid #1d4ed8;
}

.alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.alert-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.alert-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Efectos de scroll */
header {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

/* Animaciones de aparición */
.work-item, 
.contact-container > div,
.work h2,
.contact h2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.work-item.animate,
.contact-container > div.animate,
.work h2.animate,
.contact h2.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustar el espaciado para el header fijo */
main {
    padding-top: 100px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 3rem 1.5rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    text-align: left;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .logo {
    margin-bottom: 1.5rem;
}

.footer-logo .dynamic-bolt {
    width: 100px !important;
    height: 100px !important;
    min-width: 80px;
    min-height: 80px;
    max-width: 120px;
    max-height: 120px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 24px;
}


.logo i {
    font-size: 2rem;
    margin-right: 0.75rem;
}

.footer-logo .logo h1 {
    font-size: 1.75rem;
    background: linear-gradient(90deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-logo p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3, 
.footer-contact h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--primary);
    width: 1.25rem;
    text-align: center;
    margin-top: 0.25rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Estilos para móvil */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #0066ff, 0 0 20px #0066ff;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #0066ff, 0 0 40px #0066ff, 0 0 50px #0066ff;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366; /* Verde WhatsApp */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    opacity: 0.95;
}

.whatsapp-float i {
    font-size: 32px;
    line-height: 1;
}

/* Respeta el notch/safe-area en móviles */
@supports (bottom: env(safe-area-inset-bottom)) {
    .whatsapp-float {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }
}
