:root {
    --brand-black: #0d0d0d;       
    --brand-yellow: #f1b81a;      
    --brand-white: #ffffff;       
    --bg-light: #ffffff;          /* FUSIONADO CON EL FONDO TIZA DE TUS IMÁGENES */       
    --text-dark: #1f2937;         
    --whatsapp-color: #25d366;    
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', system-ui, sans-serif; 
}

body { 
    background: var(--bg-light); 
    color: var(--text-dark); 
    padding-bottom: 90px; 
    overflow-x: hidden; /* Elimina cualquier desborde horizontal o scroll fantasma */
}

/* Header: Ocupa el 100% horizontal de punta a punta de la pantalla */
header { 
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    aspect-ratio: 1024 / 683; 
    background: url('fondo-trabajo.jpg') center/cover no-repeat; 
    border-bottom: 5px solid var(--brand-yellow); 
}

/* Capa transparente calibrada sobre el botón del banner del header */
.header-wpp-overlay {
    position: absolute;
    left: 7.5%;   
    bottom: 23%;  
    width: 47%;   
    height: 11%;  
    display: block;
    text-decoration: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 30px;
}

/* Contenedor principal centrado y flexible */
.container { 
    max-width: 1200px; 
    margin: 2.5rem auto; 
    padding: 0 1.5rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sección Sobre Nosotros optimizada para mobile (Centrada) */
.about-section { 
    background: var(--brand-white); 
    border-radius: 12px; 
    padding: 2rem; 
    margin-bottom: 3.5rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border: 1px solid #e2e8f0; 
    border-left: 6px solid var(--brand-black); 
    text-align: center; 
    width: 100%;
}

.about-section h2 { 
    color: var(--brand-black); 
    font-size: 1.4rem; 
    font-weight: 800; 
    margin-bottom: 0.8rem; 
    line-height: 1.3; 
}

.about-section p { 
    font-size: 1.05rem; 
    color: #4b5563; 
    font-weight: 600; 
    line-height: 1.6; 
}

.section-title { 
    text-align: center; 
    font-size: 2rem; 
    font-weight: 800; 
    margin-bottom: 2rem; 
    color: var(--brand-black); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* Grilla de Servicios optimizada (2 columnas en mobile) */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.2rem; 
    margin-bottom: 1.5rem; 
    width: 100%;
    justify-content: center;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* Tarjetas transformadas en cuadrados perfectos sin paddings */
.card { 
    background: var(--brand-white); 
    border-radius: 12px; 
    border: 1px solid #e5e7eb; 
    padding: 0; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.02); 
    aspect-ratio: 1 / 1; 
    overflow: hidden; 
    transition: all 0.3s ease;
    width: 100%;
}

/* Imagen al 100% de la tarjeta con recorte inteligente */
.card img { 
    width: 100%;          
    height: 100%;        
    object-fit: cover; 
    display: block;
}
/* Estilos para el banner intermedio ¿Por qué elegirnos? */
.why-us-banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto -2.5rem auto;
    text-align: center;
}
.why-us-banner-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    image-rendering: -webkit-optimize-contrast;
}

/* Contenedor del Formulario y Zona de Cobertura */
.form-section-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
    margin: 0 auto 0 auto;
}

/* Contenedor flexible para alinear la imagen */
.form-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; /* Asegura el centrado vertical en mobile */
}
.form-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    image-rendering: -webkit-optimize-contrast;
}

/* Caja del Formulario centrada en mobile */
.budget-form-box {
    background: #121212;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    color: var(--brand-white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-align: center;
}
.budget-form-box h2 {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}
.budget-form-box h2 span {
    color: var(--brand-yellow);
}

/* Grilla interna para los campos del formulario */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-control {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 6px;
    padding: 0.9rem 1rem;
    color: var(--brand-white);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    text-align: center;
}
.form-control::placeholder { color: #6b7280; }
.form-control:focus { border-color: var(--brand-yellow); }
select.form-control { cursor: pointer; appearance: none; text-align-last: center; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.2em; }
textarea.form-control { resize: vertical; min-height: 100px; font-family: inherit; text-align: left; }

/* Botón de envío */
.form-submit-btn {
    width: 100%;
    background: var(--brand-yellow);
    color: var(--brand-black);
    border: none;
    border-radius: 6px;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.form-submit-btn:hover { background: #dca311; }

/* Texto de seguridad inferior */
.form-security-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 600;
}
.form-security-text svg { width: 14px; height: 14px; fill: #9ca3af; }
/* ==========================================================================
   REFACTORIZACIÓN DE BANNER VERTICAL - CANALES DE CONTACTO
   ========================================================================== */

/* Contenedor controlado para que la imagen vertical no se desborde en desktop */
.cta-closure-container {
    position: relative;
    width: 100%;
    max-width: 450px; /* Ancho ideal optimizado para que luzca perfecto en PC y celulares */
    margin: 0 auto 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 24px;
}

/* La imagen mantiene su proporción vertical nativa */
.cta-closure-container img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

/* Base de las capas interactivas transparentes */
.cta-overlay {
    position: absolute;
    display: block;
    left: 14%;      /* Centrado horizontal exacto para la caja blanca de datos */
    width: 72%;     /* Abarca todo el ancho de la fila de texto e icono */
    z-index: 99;
    cursor: pointer;
    background: rgba(255, 255, 255, 0);
}

/* Calibración matemática vertical más arriba para alinear con el texto */
.cta-overlay.v-whatsapp-lista  { top: 32.5%; height: 5.2%; }
.cta-overlay.v-instagram       { top: 39.0%; height: 5.2%; }
.cta-overlay.v-facebook        { top: 45.5%; height: 5.2%; }
.cta-overlay.v-linkedin        { top: 51.8%; height: 5.2%; }
.cta-overlay.v-gmail           { top: 57.8%; height: 5.2%; }

/* Botón verde grande inferior */
.cta-overlay.v-whatsapp-grande {
    left: 12.5%;
    top: 65.5%;
    width: 75%;
    height: 13.5%;
    border-radius: 18px;
}



/* Redes, Estrellas y Footer */
.social-container { text-align: center; padding: 2.5rem 1rem 1rem 1rem; background: var(--brand-black); border-top: 1px solid #1a1a1a; width: 100%; margin-top: 0; }
.social-container p { font-size: 0.95rem; font-weight: 800; color: var(--brand-yellow); letter-spacing: 1.5px; margin-bottom: 1.5rem; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.social-btn { text-decoration: none; padding: 0.8rem 1.8rem; border-radius: 50px; font-weight: 700; font-size: 1rem; color: var(--brand-white); display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.social-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-btn.facebook { background: #1877f2; }
.social-btn:hover { transform: translateY(-4px); filter: brightness(1.1); }

.stars-bar { background: var(--brand-black); text-align: center; padding: 1rem 1.5rem 1.5rem 1.5rem; width: 100%; }
.rating-box { display: flex; justify-content: center; gap: 8px; font-size: 2.2rem; margin-bottom: 8px; }
.star { color: #374151; cursor: pointer; transition: color 0.2s ease, transform 0.1s ease; }
.star:hover { transform: scale(1.15); }
.star.active { color: var(--brand-yellow); }
#rating-text { font-size: 1.05rem; color: #9ca3af; font-weight: 700; }
#rating-text span { color: var(--brand-yellow); }

.footer-mail { display: block; color: var(--brand-yellow); text-decoration: none; font-size: 1.1rem; font-weight: 700; margin-top: 0.5rem; margin-bottom: 1rem; }
footer { text-align: center; padding: 2.5rem; background: var(--brand-black); color: #6b7280; font-size: 0.95rem; font-weight: 600; border-top: 2px solid #1a1a1a; width: 100%; }

/* Botón Flotante de WhatsApp */
.btn-wpp-float { position: fixed; bottom: 25px; right: 25px; background-color: var(--whatsapp-color); color: var(--brand-white); width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 8px 24px rgba(37,211,102,0.4); z-index: 1000; text-decoration: none; transition: transform 0.3s ease; }
.btn-wpp-float:hover { transform: scale(1.1) rotate(10deg); }
.btn-wpp-float svg { width: 32px; height: 32px; fill: var(--brand-white); }

/* Animaciones Scroll Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* REGLAS PARA ESCRITORIO (Media Query Avanzado) */
@media (min-width: 768px) {
    /* Forzamos a las columnas a emparejar su altura en el contenedor */
    .form-section-container { 
        grid-template-columns: 1fr 1fr; 
        gap: 3rem; 
        align-items: stretch; 
    }
    /* El wrapper pasa a ocupar el alto completo y centra la imagen verticalmente sin estirarla */
    .form-image-wrapper {
        height: 100%;
        align-items: center;
    }
    .form-image-wrapper img {
        height: auto; /* Evita que la imagen se deforme como chicle */
        max-height: 100%; /* No permite que supere la altura fijada por el formulario */
        object-fit: contain; /* Muestra el mapa 100% completo, centrado y sin recortes */
    }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .full-width { grid-column: span 2; }
    .about-section { text-align: left; }
    .budget-form-box { text-align: left; }
    .form-control { text-align: left; }
    select.form-control { text-align-last: left; }
 .services-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; } 
    .service-link:hover .card { transform: translateY(-8px); box-shadow: 0 16px 28px rgba(0,0,0,0.1); border-color: var(--brand-yellow); }
}
/* ==========================================================================
   ESTILOS DEL BANNER PUBLICITARIO CON BORDE LED OSCURO Y CARRUSEL
   ========================================================================== */

.ad-led-container {
    position: relative;
    width: 100%;                  
    max-width: 1100px;            
    margin: 0 auto;               /* Márgenes en 0 para eliminar los espacios vacíos arriba y abajo */
    border-radius: 8px;          
    padding: 10px;                /* Grosor del borde */
    overflow: hidden;
    background: #000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Pseudo-elemento con efecto LED en tonos negros, grises y plateados brillantes */
.ad-led-container::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg at 50% 50%, #000000, #222222, #555555, #888888, #ffffff, #555555, #222222, #000000);
    animation: ledRotate 6s linear infinite;
    z-index: 0;
}

@keyframes ledRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contenedor interior oscuro que enmarca el carrusel sobre el borde LED */
.ad-carousel-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 12px;
    background: var(--brand-black);
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.ad-carousel-wrapper::-webkit-scrollbar {
    display: none; 
}

/* Cada slide publicitario */
.ad-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 4 / 3; /* Alto y destacado en celulares */
    scroll-snap-align: start;
    text-decoration: none;
    display: block;
}

/* En PC se mantiene horizontal clásico */
@media (min-width: 768px) {
    .ad-slide {
        aspect-ratio: 16 / 9; 
    }
}

.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Puntos indicadores (Dots) en la parte inferior */
.ad-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.ad-dot {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.ad-dot.active {
    background: var(--brand-yellow);
    transform: scale(1.25);
}
/* ==========================================================================
   ELIMINAR ESPACIOS ALREDEDOR DEL CONTENEDOR DEL CARRUSEL PUBLICITARIO
   ========================================================================== */
.container:has(.ad-led-container) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}