/* =========================================
   1. VARIABLES GLOBALES (:root)
   ========================================= */
:root {
    --rojo-dami: #3F3092; /* El morado/lila corporativo */
    --blanco: #ffffff;
    --azul-dami: #3F3092; 
    --negro-profundo: #111111;
    --negro-elegante: #121212;
    --gris-texto: #a0a0a0;
    --gris-oscuro: #252525;
}

/* =========================================
   2. RESET Y ESTRUCTURA BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding-top: 0 !important; 
    margin-top: 0;
}

/* =========================================
   3. HEADER Y NAVEGACIÓN (FIX LOGO)
   ========================================= */
.header {
    background-color: var(--rojo-dami);
    height: 90px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ELIMINACIÓN DE LA MANCHA BLANCA EN EL LOGO DEL HEADER */
.logo-box, .logo-img {
    background: transparent !important; /* Forzamos transparencia */
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
}

.logo-box img, .logo-img {
    height: 70px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--blanco);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* BOTÓN PEDIR PRESUPUESTO */
.btn-presupuesto {
    background-color: var(--blanco);
    color: var(--azul-dami);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid var(--blanco);
}

.btn-presupuesto:hover {
    background-color: transparent;
    color: var(--blanco);
}

/* =========================================
   4. SECCIÓN HERO (PRINCIPAL)
   ========================================= */
.hero {
    position: relative;
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 90px; /* Compensación altura header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-rojo {
    background: var(--rojo-dami);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: white;
    color: var(--rojo-dami);
}

/* =========================================
   5. FEATURES / VALORES
   ========================================= */
.features {
    max-width: 1200px;
    margin: -50px auto 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 90%;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover { transform: translateY(-10px); }

.feature-card i {
    font-size: 40px;
    color: var(--rojo-dami);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* =========================================
   6. SECCIÓN SERVICIOS DETALLADA
   ========================================= */
.services-hero {
    height: 60vh;
    background: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.services-detailed {
    background-color: #ffffff;
    padding: 0;
}

.service-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 500px;
}

.service-row.reverse { flex-direction: row-reverse; }

.service-image, .service-description {
    flex: 1;
    min-width: 50%;
}

.service-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.service-description {
    padding: 80px;
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(63, 48, 146, 0.1); /* Morado muy claro */
    display: block;
    margin-bottom: -20px;
}

.service-description h2 {
    font-size: 2.2rem;
    color: #111;
    margin-bottom: 20px;
    position: relative;
}

.service-description h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--rojo-dami);
    margin-top: 10px;
}

.service-description p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-list { list-style: none; }
.service-list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-list i { color: var(--rojo-dami); }

/* =========================================
   7. FOOTER (FIX MANCHA BLANCA LOGO)
   ========================================= */
.footer {
    background-color: var(--negro-elegante);
    color: #ffffff;
    padding: 60px 0 20px 0;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column, .footer-col {
    flex: 1;
    min-width: 280px;
}

/* ELIMINACIÓN DE LA MANCHA BLANCA EN EL LOGO DEL FOOTER */
.footer-logo-box, .logo-footer-box {
    background: transparent !important; /* Forzamos transparencia */
    background-color: transparent !important;
    display: inline-block;
    padding: 0 !important;
    margin-bottom: 20px;
    border: none !important;
}

.footer-logo-box img, .logo-footer-box img {
    height: 45px;
    display: block;
    background: transparent !important;
}

.footer-column p {
    color: var(--gris-texto);
    font-size: 14px;
    line-height: 1.6;
}

.footer-column h3, .footer-col h3 {
    color: var(--rojo-dami);
    font-size: 17px;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.contact-list { list-style: none; padding: 0; }
.contact-list li {
    color: var(--gris-texto);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-list i, .footer-col i {
    color: var(--rojo-dami);
    margin-top: 3px;
}

.schedule-info p { margin-bottom: 10px; color: var(--gris-texto); }
.schedule-info strong { color: #ffffff; }

.closed, .status-closed {
    font-style: italic;
    color: var(--rojo-dami) !important;
    margin-top: 15px;
}

.footer-copyright, .footer-bar {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--gris-oscuro);
    font-size: 12px;
    color: #666;
}

/* =========================================
   8. CTA FINAL (SERVICIOS)
   ========================================= */
.services-footer-cta {
    background-color: var(--negro-profundo);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.services-footer-cta h2 { font-size: 2rem; margin-bottom: 20px; }
.services-footer-cta p { margin-bottom: 40px; color: #888; }


/* --- RESET Y COLORES --- */
:root {
    --morado: #3F3092;
    --blanco: #ffffff;
    --gris-claro: #f4f7f6;
    --texto: #333333;
}

.container-rsw { max-width: 1200px; margin: 0 auto; width: 90%; }

/* --- CONTACTO --- */
.contacto-rsw { padding: 80px 0; background-color: var(--blanco); }
.contacto-header { text-align: center; margin-bottom: 50px; }
.contacto-header h2 { color: var(--morado); font-size: 2.5rem; text-transform: uppercase; }
.linea-decorativa { width: 60px; height: 4px; background: var(--morado); margin: 15px auto; }

.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }

.info-card { background: var(--gris-claro); padding: 40px; border-radius: 15px; border-left: 5px solid var(--morado); }
.item-contacto { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.item-contacto i { color: var(--morado); font-size: 1.8rem; }
.item-contacto strong { display: block; color: var(--morado); font-size: 1.1rem; }

.mapa-card { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.mapa-card iframe { width: 100%; height: 100%; min-height: 400px; }

/* --- CALCULADORA --- */
.presupuesto-seccion { padding: 80px 0; background-color: var(--gris-claro); }
.presu-header { text-align: center; margin-bottom: 50px; }
.presu-header span { color: var(--morado); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.presu-header h2 { font-size: 2.2rem; color: var(--texto); margin-top: 10px; }

.presu-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }

.config-panel { background: var(--blanco); padding: 40px; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.config-step { margin-bottom: 35px; }
.config-step label { display: block; font-weight: 700; color: var(--morado); margin-bottom: 15px; }

.chips-group { display: flex; gap: 10px; }
.chips-group input { display: none; }
.chips-group label { 
    flex: 1; text-align: center; padding: 12px; background: #eee; 
    border-radius: 8px; cursor: pointer; transition: 0.3s; 
}
.chips-group input:checked + label { background: var(--morado); color: white; box-shadow: 0 4px 10px rgba(63, 48, 146, 0.3); }

#motor { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-family: inherit; }

.price-card-rsw { 
    background: var(--morado); color: white; padding: 50px; 
    border-radius: 20px; text-align: center; height: fit-content;
    position: sticky; top: 120px;
}
.total-display { font-size: 4.5rem; font-weight: 800; margin: 20px 0; }
.btn-presupuesto-final { 
    display: flex; /* Para centrar el texto si es un link */
    align-items: center;
    justify-content: center;
    width: 100%; 
    padding: 18px; 
    background: white; 
    color: var(--morado); 
    border: none; 
    border-radius: 10px; 
    font-weight: 800; 
    cursor: pointer;
    text-transform: uppercase; 
    transition: 0.3s;
    text-decoration: none; /* Quita el subrayado azul de los links */
}
.btn-presupuesto-final:hover { transform: scale(1.05); background: #f0f0f0; }


.separador-rsw {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 0; /* Espaciado arriba y abajo para que respire */
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.linea-gradiente {
    flex: 1;
    height: 2px;
    /* Degradado que va de transparente al morado y vuelve a transparente */
    background: linear-gradient(to var(--direccion, right), transparent, var(--morado), transparent);
}

.separador-rsw i {
    color: var(--morado);
    font-size: 1.5rem;
    opacity: 0.6;
}

/* ESPACIADO GLOBAL PARA RSW STUDIO */

/* Separación para la sección de contacto */
.contacto-rsw {
    padding-top: 80px;
    padding-bottom: 60px;
}

/* Ajuste del separador (la línea con el icono de herramientas) */
.separador-rsw {
    margin: 40px auto; /* Añade margen arriba y abajo */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    opacity: 0.8;
}

/* Espaciado para la calculadora */
.presupuesto-seccion {
    padding-top: 80px;
    padding-bottom: 100px;
    background-color: #f9f9f9; /* Un tono muy suave para diferenciarla del contacto */
}

/* Espaciado interno de la cuadrícula de la calculadora */
.presu-grid {
    margin-top: 50px;
    gap: 40px; /* Más espacio entre el panel de control y la tarjeta de precio */
}


/* =========================================
   9. MEJORAS DE EXPERIENCIA (RSW STUDIO)
   ========================================= */

/* Suavizado de toda la página */
html {
    scroll-behavior: smooth;
}

/* Mejora de los Chips (Botones de tipo de puerta) */
.chips-group label {
    border: 2px solid transparent;
    font-weight: 600;
    color: #555;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chips-group label:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.chips-group input:checked + label {
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.02);
    letter-spacing: 0.5px;
}

/* Efecto "Glow" en la tarjeta de precio */
.price-card-rsw {
    box-shadow: 0 20px 40px rgba(63, 48, 146, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px); /* Efecto cristal si hay algo detrás */
}

/* Animación para el número del total */
.total-display {
    transition: all 0.3s ease;
    display: inline-block;
}

.total-display.updating {
    transform: scale(1.1);
    color: #ffd700; /* Destello dorado momentáneo al cambiar precio */
}

/* Mejora de los Checkboxes (Seguridad) */
.checks-group label {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
    cursor: pointer;
}

.checks-group label:hover {
    background: rgba(63, 48, 146, 0.05);
}

.checks-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--morado);
    margin-right: 12px;
}

/* Botón final con efecto de brillo */
.btn-presupuesto-final {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-presupuesto-final::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255,255,255,0.3);
    transform: rotate(30deg);
    transition: all 0.5s;
}

.btn-presupuesto-final:hover::after {
    left: 120%;
}

/* =========================================
   10. CORRECCIONES DE ESPACIADO FINAL
   ========================================= */

/* Evita que el footer se pegue en pantallas muy altas */
.site-wrapper {
    min-height: 100vh;
}

/* Ajuste del Mapa para que sea responsivo */
.mapa-card iframe {
    filter: grayscale(0.2) contrast(1.1); /* Toque elegante al mapa */
    transition: filter 0.5s;
}

.mapa-card:hover iframe {
    filter: grayscale(0);
}

/* =========================================
   REESTRUCTURACIÓN FINAL - RSW STUDIO
   ========================================= */

/* Forzar que el contenedor no deje que las cosas se peguen a los bordes */
.container-rsw {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* DAR AIRE REAL A LAS SECCIONES */
.contacto-rsw, .presupuesto-seccion {
    padding: 100px 0 !important; /* Espacio gigante arriba y abajo */
    width: 100%;
    display: block;
    clear: both;
}

/* Arreglar el grid de contacto (Mapa + Info) */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

/* EL SEPARADOR: El gran culpable de que se vea mal */
.separador-rsw {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 150px; /* Forzamos una altura fija para que nada se pegue */
    margin: 40px auto !important;
    max-width: 1100px;
}

/* LA CALCULADORA: Espaciado interno */
.presu-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Panel botones vs Tarjeta azul */
    gap: 60px;
    margin-top: 50px;
    align-items: start;
}

/* Espacio entre los pasos 1, 2 y 3 */
.config-step {
    margin-bottom: 50px !important;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* =========================================
   ESTILOS ADICIONALES - RSW STUDIO
   ========================================= */

/* 1. SECCIÓN SOBRE NOSOTROS */
.sobre-nosotros-rsw {
    padding: 100px 0;
    background-color: #ffffff;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge {
    color: var(--rojo-dami);
    background: rgba(63, 48, 146, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.sobre-texto h2 {
    font-size: 2.5rem;
    color: var(--negro-profundo);
    margin-bottom: 20px;
    line-height: 1.2;
}

.lista-check {
    list-style: none;
    margin: 30px 0;
}

.lista-check li {
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lista-check i {
    color: #2ecc71; /* Verde para los checks */
    font-size: 1.2rem;
}

.sobre-imagen {
    position: relative;
}

.sobre-imagen img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.tag-experiencia {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--rojo-dami);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(63, 48, 146, 0.3);
}

.tag-experiencia strong {
    display: block;
    font-size: 1.8rem;
}

/* 2. SECCIÓN PASOS DE TRABAJO */
.pasos-trabajo {
    padding: 100px 0;
    background-color: #fcfcfd;
}

.header-centrado {
    text-align: center;
    margin-bottom: 60px;
}

.header-centrado h2 {
    font-size: 2.3rem;
    margin-bottom: 15px;
}

.pasos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.paso-item {
    background: white;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    transition: 0.3s;
    border-bottom: 4px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.paso-item:hover {
    transform: translateY(-10px);
    border-color: var(--rojo-dami);
}

.paso-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(63, 48, 146, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
}

.paso-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--rojo-dami);
}

/* 3. CTA OSCURO INTERMEDIO */
.cta-oscuro {
    background: var(--negro-profundo);
    padding: 60px 0;
    color: white;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-flex h2 {
    font-size: 1.8rem;
    max-width: 600px;
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .sobre-grid, .pasos-grid, .cta-flex {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-flex {
        flex-direction: column;
    }
    
    .lista-check li {
        justify-content: center;
    }
}