* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 4rem 0 0 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Services Section */
.services-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.services-header h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.services-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-header .highlight {
    color: #00bcd4;
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(2).animate {
    animation-delay: 0.2s;
}

.service-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,188,212,0.8), rgba(76,175,80,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

/* Placeholders para las imágenes */
.service-image.asesoria {
    background-image: url('./../images/asesoria.jpg'); /* Reemplaza con tu imagen de asesoría */
}

.service-image.mantenimiento {
    background-image: url('./../images/mantenimiento.jpg'); /* Reemplaza con tu imagen de transformadores */
}

.service-image.construccion {
    background-image: url('./../images/consultoria.jpeg'); /* Reemplaza con tu imagen de transformadores */
}

.service-image.venta {
    background-image: url('./../images/transformador_grande.jpeg'); /* Reemplaza con tu imagen de transformadores */
}

.service-content {
    padding: 2rem;
    text-align: center;
}

.service-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .services-header h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        min-width: auto;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .services-header h1 {
        font-size: 2rem;
    }

    .service-image {
        height: 250px;
    }

    .service-content {
        padding: 1.5rem;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4, #4caf50);
    z-index: 1001;
    transition: width 0.3s ease;
}


/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #8bc34a 0%, #4caf50 100%);
    padding: 5rem 0 2rem 0;
    margin: 4rem 0 0 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    opacity: 0;
    transform: translateY(50px);
}

.testimonials-section.animate {
    animation: fadeInUp 1s ease forwards;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    padding: 0 2rem;
}

.testimonial-card {
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.testimonial-card:nth-child(2).animate {
    animation-delay: 0.3s;
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.stars span {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Responsive para testimonios */
@media (max-width: 768px) {
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        max-width: 300px;
    }
    
    .testimonials-section {
        padding: 4rem 0;
        margin: 3rem 0;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 3rem 0;
        margin: 2rem 0;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        max-width: 280px;
    }
    
    .stars {
        font-size: 1.3rem;
    }
}