/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo {
    max-width: 400px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: none;
    padding: 0 !important;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
}

.nav-menu:hover {
    /*background: none;
    transform: none;
    box-shadow: none;*/
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #1e40af;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    transition: all 0.3s ease;
    display: block;
    background: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.5rem;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: #1e40af;
}

.nav-link:hover::after {
    width: calc(100% - 3rem);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(30, 64, 175, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(30, 64, 175, 0.2);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
}

.hamburger:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.hamburger:hover .bar {
    background-color: #fff;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1e40af;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: url('images/background-hero2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(180deg, rgba(30, 64, 175, 1), rgba(59, 130, 246, 0.5));*/
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.7), rgba(0, 0, 0, 1));
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-item i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.feature-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.electrical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 300px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.grid-item i {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    display: block;
}

.grid-item span {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: #ae382e;
    color: #fff;
}

.btn-primary:hover {
    background: #943629;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fbbf24;
    color: #000;
    border: 2px solid #fbbf24;
}

.btn-secondary:hover {
    background: #f59e0b;
    color: #000;
}

/* Section Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

.section-divider {
    display: none;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* Fondo de circuito eléctrico */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Líneas horizontales principales */
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        /* Líneas verticales principales */
        linear-gradient(0deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        /* Líneas horizontales secundarias */
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        /* Líneas verticales secundarias */
        linear-gradient(0deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        /* Puntos de conexión */
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12) 2px, transparent 2px);
    background-size: 
        120px 120px,
        120px 120px,
        40px 40px,
        40px 40px,
        120px 120px;
    background-position: 
        0 0,
        0 0,
        0 0,
        0 0,
        0 0;
    z-index: 1;
}

/* Puntos de conexión adicionales */
.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Círculos de conexión grandes */
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 4px, transparent 4px),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.1) 4px, transparent 4px),
        radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0.1) 4px, transparent 4px),
        radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.1) 4px, transparent 4px),
        /* Líneas diagonales de conexión */
        linear-gradient(45deg, transparent 49%, rgba(59, 130, 246, 0.06) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(59, 130, 246, 0.06) 50%, transparent 51%);
    background-size: 
        240px 240px,
        240px 240px,
        240px 240px,
        240px 240px,
        80px 80px,
        80px 80px;
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
    padding: 0;
}

.about-intro {
    margin-bottom: 3rem;
}

.about-intro h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
}

.about-intro h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

.about-intro h3::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

.about-intro p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-2px);
}

.feature-icon i {
    font-size: 2rem;
    color: #fbbf24;
    transition: all 0.3s ease;
}

.feature-icon:hover i {
    color: #f59e0b;
    transform: scale(1.1);
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.services .section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(29, 78, 216, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay i {
    font-size: 4rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.service-content {
    padding: 2rem;
}

.service-title {
    color: #1d4ed8;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.service-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:hover {
    background: #f8fafc;
    padding-left: 0.5rem;
    border-radius: 6px;
}

.service-list i {
    color: #fbbf24;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Responsive design for services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        margin: 0 1rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
}

/* Tests Section */
.tests {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* Fondo de circuito eléctrico para tests */
.tests::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Líneas horizontales principales */
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        /* Líneas verticales principales */
        linear-gradient(0deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        /* Líneas horizontales secundarias */
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        /* Líneas verticales secundarias */
        linear-gradient(0deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        /* Puntos de conexión */
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12) 2px, transparent 2px);
    background-size: 
        120px 120px,
        120px 120px,
        40px 40px,
        40px 40px,
        120px 120px;
    background-position: 
        0 0,
        0 0,
        0 0,
        0 0,
        0 0;
    z-index: 1;
}

/* Puntos de conexión adicionales para tests */
.tests::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Círculos de conexión grandes */
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 4px, transparent 4px),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.1) 4px, transparent 4px),
        radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0.1) 4px, transparent 4px),
        radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.1) 4px, transparent 4px),
        /* Líneas diagonales de conexión */
        linear-gradient(45deg, transparent 49%, rgba(59, 130, 246, 0.06) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(59, 130, 246, 0.06) 50%, transparent 51%);
    background-size: 
        240px 240px,
        240px 240px,
        240px 240px,
        240px 240px,
        80px 80px,
        80px 80px;
    z-index: 1;
}

.tests .container {
    position: relative;
    z-index: 2;
}

.tests .section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    align-items: start;
}

.test-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.test-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.test-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.test-image:hover {
    opacity: 0.9;
}

.test-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.test-icon i {
    font-size: 1.5rem;
    color: #1d4ed8;
}

.test-card .accordion-item {
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: none;
}

.test-card .accordion-header {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: #1e293b;
    transition: all 0.3s ease;
    border: none;
}

.test-card .accordion-header:hover {
    background: #f8fafc;
}

.test-card .accordion-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d4ed8;
    margin: 0;
}

.test-card .accordion-header i {
    transition: transform 0.3s ease;
    color: #64748b;
    font-size: 1.2rem;
}

.test-card .accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: #1d4ed8;
}

.test-card .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.test-card .accordion-item.active .accordion-content {
    max-height: 1000px;
}

.test-card .accordion-content ul {
    padding: 0 2rem 2rem 2rem;
    list-style: none;
    margin: 0;
}

.test-card .accordion-content li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.test-card .accordion-content li:last-child {
    border-bottom: none;
}

.test-card .accordion-content li:hover {
    background: #f8fafc;
    padding-left: 0.5rem;
    border-radius: 6px;
}

.test-card .accordion-content li i {
    color: #fbbf24;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Responsive design for tests */
@media (max-width: 768px) {
    .tests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .test-card {
        margin: 0 1rem;
    }
    
    .test-image {
        height: 160px;
    }
    
    .test-card .accordion-header {
        padding: 1.5rem;
    }
    
    .test-card .accordion-header h3 {
        font-size: 1.1rem;
    }
    
    .test-card .accordion-content ul {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: #fff;
    font-size: 1.2rem;
}

.contact-details h3 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #64748b;
    line-height: 1.6;
}

.contact-details a {
    color: #3b82f6;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
}

.contact-form h3 {
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Estilos para el formulario mejorado */
.btn-loading {
    display: none;
}

.form-message {
    display: none;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #ef4444;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary .btn-text,
.btn-primary .btn-loading {
    transition: all 0.3s ease;
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .btn-loading {
    display: inline-block;
}

/* Footer */
.footer {
    background: #1e40af;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    max-width: 400px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-text p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, rgb(30, 64, 175), rgb(59, 130, 246));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 40px rgba(30, 64, 175, 0.3);
        padding: 2rem 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        gap: 0;
        display: flex;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1.5rem 2rem 1.5rem 2rem;
        margin: 0;
        display: inline-block;
        background: none;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 1);
        font-weight: 600;
        text-decoration: none;
        position: relative;
        overflow: hidden;
        transition: color 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        color: rgba(255, 255, 255, 1);
    }

    .nav-link:hover::after {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-features {
        justify-content: center;
    }

    .electrical-grid {
        max-width: 250px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: 2;
    }

    .about-text {
        order: 1;
    }

    .about-image img {
        height: 400px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .grid-item {
        min-width: 200px;
    }

    .electrical-grid {
        justify-content: center;
    }
}

@media (max-width: 550px) {
    .logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .feature-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .electrical-grid {
        grid-template-columns: 1fr;
        max-width: 200px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-intro h3 {
        font-size: 1.4rem;
    }

    .about-image img {
        height: 300px;
    }

    .feature-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .service-category {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .grid-item {
        min-width: 200px;
    }

    .electrical-grid {
        justify-content: center;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Animations removed for better performance */

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
}

.scroll-to-top:hover {
    background: #1e40af;
}
