/* Reset y estilos generales */
* {
    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: #f9f9f9;
}

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

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c3e50;
}

p {
    margin-bottom: 15px;
}

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

ul {
    list-style: none;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: #27ae60;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #219653;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.btn-secondary:hover {
    background-color: #27ae60;
    color: white;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #27ae60;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #27ae60;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #2c3e50;
}

.logo-text p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: #2c3e50;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #27ae60;
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/servicio1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 160px 0 100px;
    margin-top: 90px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Servicios */
.services {
    padding: 80px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Galería */
.gallery {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    height: 200px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    text-align: center;
    color: #666;
    font-weight: 500;
}

.certification {
    text-align: center;
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.certification i {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.certification p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Sobre Nosotros */
.about {
    padding: 80px 0;
    background-color: white;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 25px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.feature i {
    font-size: 2rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.feature h4 {
    margin-bottom: 10px;
}

/* Contacto - NUEVO ESTILO SIN FORMULARIO */
.contact {
    padding: 80px 0;
    background-color: white;
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 1.8rem;
    color: #27ae60;
    margin-right: 20px;
    min-width: 40px;
}

.contact-text h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.contact-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #27ae60;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #219653;
}

.contact-address {
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-cta {
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}

.contact-cta h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.logo-footer {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-social {
    margin-top: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #27ae60;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #27ae60;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #27ae60;
    min-width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a, .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-cta {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .services-grid, .features {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Estilos adicionales para la nueva sección Hero */
.hero-synopsis {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background-color: rgba(39, 174, 96, 0.3);
    transform: translateY(-3px);
}

.feature-badge i {
    color: #27ae60;
    font-size: 1.2rem;
}

.feature-badge span {
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-note {
    margin-top: 25px;
    font-size: 1rem;
    opacity: 0.9;
}

.hero-note i {
    margin-right: 8px;
    color: #27ae60;
}

/* Para el h1 en hero */
.hero-content h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-synopsis {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .feature-badge {
        width: 90%;
        justify-content: center;
    }
}

/* Sección Clientes */
.clients {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.client-logo {
    background-color: rgb(238, 238, 238);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden; /* Para que las imágenes no se salgan */
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Estilo para las imágenes de logos - MANTENIENDO COLORES */
.logo-img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain; /* Esto mantiene la proporción de la imagen */
    transition: all 0.3s ease;
}

/* Efecto hover sutil para las imágenes */
.client-logo:hover .logo-img {
    transform: scale(1.05); /* Ligero zoom al pasar el mouse */
    opacity: 0.9;
}

.logo-img1 {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain; 
    transition: all 0.3s ease;
}

/* Efecto hover sutil para las imágenes */
.client-logo:hover .logo-img1 {
    transform: scale(1.05); 
    opacity: 0.9;
}

/* Para logos que sean texto (si alguno no tiene imagen) */
.client-logo:not(:has(img)) {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .client-logo {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .logo-img {
        max-height: 50px;
    }

    .logo-img1 {
        max-height: 70px;
    }
}

@media (max-width: 576px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}