/* --- SERVICIOS (Ajustado para 4 columnas) --- */

         body { font-family: 'Segoe UI', sans-serif; margin: 0; line-height: 1.6; color: #333; scroll-behavior: smooth; }

        /* --- NAVEGACIÓN --- */
        header { background: #2c3e50; color: white; padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000; }
        nav { display: flex; justify-content: space-around; align-items: center; max-width: 1100px; margin: auto; }
        nav a { color: white; text-decoration: none; font-weight: bold; margin: 0 15px; }

        /* --- HERO CON VÍDEO --- */
        .hero {
            position: relative;
            height: 80vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
            overflow: hidden;
        }

        #video-fondo {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            z-index: -2;
            transform: translateX(-50%) translateY(-50%);
            object-fit: cover;
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: -1;
        }

        .hero-content { z-index: 1; padding: 0 20px; }
        .hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

        /* --- SERVICIOS --- */
        .services { padding: 60px 20px; max-width: 1200px; margin: auto; text-align: center; }
        
        .services-grid { 
            display: grid; 
            /* Bajamos el mínimo de 280px a 220px para que quepan los 4 en una fila */
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
            gap: 20px; 
            margin-top: 30px; 
        }
        .service-card { 
            display: block; 
            text-decoration: none; 
            color: inherit; 
            padding: 25px; 
            border: 2px solid #eee; 
            border-radius: 10px; 
            transition: all 0.3s ease; 
            background: white;
        }

        .service-card:hover { 
            border-color: #3498db; 
            transform: translateY(-10px); 
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .service-card h3 { color: #2c3e50; margin-top: 0; }
        .btn-saber-mas { display: inline-block; margin-top: 15px; color: #3498db; font-weight: bold; }

        /* --- CARRUSEL DE IMAGEN ÚNICA (TRABAJOS REALIZADOS) --- */
        .trabajos { 
            background-color: #2c3e50; 
            padding: 60px 20px; 
            color: white;
            text-align: center;
        }

        .carousel-container {
            position: relative;
            max-width: 900px;
            height: 500px; /* Altura fija para evitar saltos */
            margin: 30px auto;
            overflow: hidden;
            border-radius: 12px;
            background: #000;
            box-shadow: 0 15px 35px rgba(0,0,0,0.3);
        }

        .carousel-track {
            display: flex;
            height: 100%;
            transition: transform 0.5s ease-in-out;
        }

        .carousel-slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .carousel-slide img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain; /* Ajusta sin cortar */
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(52, 152, 219, 0.9);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            cursor: pointer;
            font-size: 24px;
            z-index: 10;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .prev { left: 15px; }
        .next { right: 15px; }
        .carousel-btn:hover { background: #2980b9; }

        /* --- CONTACTO --- */
        .contact { padding: 60px 20px; max-width: 1100px; margin: auto; text-align: center; }
        .contact-info { background: #3498db; color: white; padding: 30px; border-radius: 10px; margin-top: 20px; }
        
        footer { background: #2c3e50; color: white; text-align: center; padding: 20px 0; }