/* =============================================
   1. RESET CRÍTICO (Evita doble header)
   ============================================= */
header > .navbar,
.xrm-editable-header {
    display: none !important;
}

body {
    padding-top: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}

/* =============================================
   2. VARIABLES GLOBALES
   ============================================= */
:root {
    --nett-blue: #181b45;
    --nett-bright-blue: #2980b9;
    --nett-accent: #c51515;
    --nett-dark: #0a0a0a;
    --bg-light: #f9fafb;
    --text-white: #ffffff;
}

/* Utilidades */
.text-white { color: #ffffff !important; }
.nc-text-shadow { text-shadow: 0 4px 15px rgba(0,0,0,0.95); }
.nc-section-padding { padding-top: 5rem; padding-bottom: 5rem; }
.nc-divider { height: 4px; width: 60px; background: var(--nett-accent); margin-top: 10px; border-radius: 2px; }
.text-primary-nett { color: var(--nett-blue) !important; }
.bg-light-gray { background-color: #f4f5f7; }

/* =============================================
   3. HEADER PREMIUM (Transparente -> Blanco)
   ============================================= */
.navbar.nett-header {
    background: transparent;
    padding: 20px 0;
    transition: all 0.4s ease;
    border: none;
    width: 100%;
    z-index: 9999;
}

.navbar.nett-header .brand-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s;
}
.navbar.nett-header .nav-link {
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0 15px !important;
}
.navbar.nett-header .custom-navbar-toggler {
    border: none;
    outline: none;
}
.navbar.nett-header .custom-navbar-toggler i {
    color: #fff;
    font-size: 1.5rem;
}

/* Estado scrolled */
.navbar.nett-header.scrolled {
    background: #ffffff !important;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.navbar.nett-header.scrolled .brand-logo { filter: none; }
.navbar.nett-header.scrolled .nav-link { color: var(--nett-blue) !important; }
.navbar.nett-header.scrolled .nav-link:hover { color: var(--nett-accent) !important; }
.navbar.nett-header.scrolled .custom-navbar-toggler i { color: var(--nett-blue); }

/* Botones header */
.btn-cta-blue {
    background: var(--nett-blue);
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--nett-blue);
    transition: 0.3s;
}
.btn-cta-blue:hover {
    background: var(--nett-bright-blue);
    border-color: var(--nett-bright-blue);
    transform: translateY(-2px);
}
.btn-cta-red {
    background: var(--nett-accent);
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--nett-accent);
    transition: 0.3s;
}
.btn-cta-red:hover {
    background: #a00f0f;
    transform: translateY(-2px);
}

/* Menú móvil fullscreen */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(10,10,10,0.98);
        display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        opacity: 0; visibility: hidden;
        transition: 0.4s;
    }
    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
    }
    .navbar.nett-header .nav-link {
        font-size: 1.5rem;
        margin-bottom: 20px;
        color: white !important;
    }
    .header-cta {
        flex-direction: column;
        width: 80%;
        gap: 15px;
        margin-top: 30px;
    }
    .btn-cta-blue, .btn-cta-red {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    .custom-navbar-toggler {
        z-index: 10000;
        position: relative;
    }
}

/* =============================================
   4. HERO SECTION & VIDEO (FIX VISUAL)
   ============================================= */
.nc-hero-video {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px;
    overflow: hidden;
}

.video-background {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
#bg-video { width: 100%; height: 100%; object-fit: cover; }

/* Overlay un poco más oscuro para que se lean las letras blancas */
.video-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(24,27,69,0.5) 50%, rgba(0,0,0,0.9) 100%);
}

@media (max-width: 767px) {
    #bg-video { display: none; }
    .video-background { background: url('/web-files/videofondo.mp4') no-repeat center center scroll; background-size: cover; }
}

/* --- CONTENIDO PRINCIPAL --- */
.nc-hero-content { position: relative; z-index: 2; width: 100%; }

/* IMPORTANTE: Centrado y ancho máximo ampliado para que quepan las 4 cajas */
.nc-hero-content .row {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* Forzamos que el contenedor sea más ancho en pantallas grandes */
@media (min-width: 1200px) {
    .nc-hero-content .col-lg-8, 
    .nc-hero-content .col-lg-10, 
    .nc-hero-content .col-xl-9 {
        flex: 0 0 95%; max-width: 95%; /* Damos más espacio horizontal */
    }
}

.nc-hero-content h1 { font-size: clamp(2rem, 5vw, 3.8rem); }

/* Chips */
.nc-glass-chip {
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3); padding: 8px 20px;
    border-radius: 50px; color: white; font-weight: 500; display: flex; align-items: center;
}
.nc-glass-chip i { color: var(--nett-accent); }


/* --- FIX: TÍTULO BLANCO Y GRANDE --- */
/* Usamos selectores muy específicos para sobrescribir cualquier clase de Bootstrap */
#hero h2, 
.nc-hero-content h2,
.text-primary-nett.nc-hero-title-fix { 
    color: #ffffff !important; 
    font-size: 2.2rem !important; 
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    margin-top: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- FIX: GRID DE 4 COLUMNAS --- */
.nc-steps__grid {
    display: grid;
    /* Escritorio: 4 columnas forzadas */
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 15px; /* Gap reducido para que no se caiga la última caja */
    width: 100%;
    margin-bottom: 40px;
}

.nc-step-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 10px; /* Menos padding lateral para que quepa el texto */
    text-align: center;
    height: 100%; 
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* (primer .nc-step__icon eliminado por redundante) */

.nc-step-card h4 {
    color: var(--nett-blue); font-size: 1rem; font-weight: 800; margin-bottom: 5px;
}
.nc-step-card p {
    color: #333; font-size: 0.85rem; line-height: 1.3; margin-bottom: 0;
}

/* =======================================================
   FIX FINAL DE COLORES (Sobrescribe theme.css)
   ======================================================= */

/* 1. Título "¿CÓMO FUNCIONA?" */
/* Usamos #hero h2 para ser más específicos que .page_section h2 del tema */
#hero h2, 
#hero .nc-hero-subtitle {
    color: #ffffff !important; 
    font-family: 'Segoe UI', sans-serif !important; /* Reseteamos fuente por si acaso */
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* 2. Texto explicativo debajo de "¿Cómo funciona?" */
#hero .nc-hero-subtext {
    color: #ffffff !important;
    opacity: 0.95;
    font-size: 1.1rem !important;
    font-weight: 400;
}

/* 3. Texto pequeño debajo del botón "EMPEZAR AHORA" */
#hero .nc-hero-cta-caption {
    color: #ffffff !important;
    font-size: 1rem !important;
    margin-top: 15px;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Sombra para que se lea sobre el coche */
}

/* 4. Asegurar que las cajas (cards) tengan texto oscuro dentro */
/* Esto es importante porque si forzamos blanco global, no se leerá dentro de las cajas blancas */
#hero .nc-step-card h4 {
    color: var(--nett-blue) !important;
}
#hero .nc-step-card p {
    color: #333333 !important;
}

/* 5. Ajuste fino del Grid para que las cajas tengan la misma altura */
.nc-steps__grid {
    align-items: stretch !important; /* Estira las cajas para que midan lo mismo */
}

/* --- FIX: BOTÓN BLANCO Y TEXTO INFERIOR --- */
/* El botón "Empezar ahora" */
.nc-btn-pill {
    background-color: #ffffff !important; /* Fondo Blanco forzado */
    color: var(--nett-blue) !important;   /* Texto Azul Oscuro */
    font-weight: 800;
    text-transform: uppercase;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s;
}

.nc-btn-pill:hover {
    transform: translateY(-3px);
    background-color: #f0f0f0 !important;
}

/* Texto "Cuéntanos qué buscas..." */
.nc-hero-bottom-text {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    margin-top: 15px;
    font-weight: 500;
    display: block;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.9);
}


/* =============================================
   RESPONSIVE (CRÍTICO PARA QUE SE VEA BIEN EN MÓVIL)
   ============================================= */

/* Tablet (Entre 768px y 1199px) - Aquí puede que 4 sean muchas, pasamos a 2x2 */
@media (max-width: 1199px) {
    .nc-steps__grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 arriba, 2 abajo */
    }
}

/* Móvil (Menos de 767px) */
@media (max-width: 767px) {
    .nc-steps__grid {
        grid-template-columns: 1fr !important; /* Una debajo de otra */
    }
    
    .nc-hero-content h1 { font-size: 2rem; }
    
    /* En móvil el botón ocupa todo el ancho */
    .nc-btn-pill { width: 100%; text-align: center; }
}

/* =============================================
   5. PARTNERS
   ============================================= */
.nc-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
}
.nc-partner-card img {
    max-height: 45px;
    width: auto;
    display: block;
    /* sin efectos hover: logos limpios */
}

/* =============================================
   6. SECCIONES (Cómo funciona / Partners)
   ============================================= */
.nc-steps__grid, .nc-partners-grid {
    display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.nc-step-card, .nc-partner-card {
    background: white; padding: 40px 20px; border-radius: 12px; border: 1px solid #eee; text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: transform 0.3s ease, border-color 0.3s;
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.nc-step-card:hover, .nc-partner-card:hover {
    transform: translateY(-8px); border-color: var(--nett-blue);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.nc-step__icon { 
    width: 45px; height: 45px; background: var(--nett-blue); color: white; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    margin-bottom: 20px; font-weight: bold; font-size: 1.2rem; 
}
.nc-step-card h4 { color: var(--nett-blue); font-weight: 700; margin-bottom: 12px; }
.nc-btn-pill { background: var(--nett-accent); color: white; padding: 12px 40px; border-radius: 50px; font-weight: 600; border: none; }
.nc-btn-pill:hover { background: #a00f0f; color: white; transform: translateY(-2px); }

.nc-partner-card img { max-width: 90%; max-height: 60px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s; }
.nc-partner-card:hover img { filter: grayscale(0%); opacity: 1; }

/* =============================================
   7. PÁGINA DE SERVICIOS (Estilos Limpios & Full Width)
   ============================================= */

/* Variables Locales para consistencia */
:root {
    --nett-text: #101828;       /* Gris muy oscuro para lectura */
    --nett-light-bg: #ffffff;   /* Blanco puro */
}

/* --- HERO SECTION (FULL WIDTH & UNDER HEADER) --- */
.nc-services-hero {
    /* 1. FORZAR ANCHO COMPLETO (Rompe el contenedor) */
    width: 100vw !important;  
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    
    /* 2. AJUSTES DE POSICIÓN Y TAMAÑO */
    max-width: none !important; 
    border-radius: 0 !important; 
    margin-top: -135px !important; /* Sube la imagen para que quede DETRÁS del menú */
    margin-bottom: 0px !important;
    
    /* 3. IMAGEN DE FONDO */
    background-image: url("/Generated Image November 09 2025 - 1131AM.png");
    height: 550px !important; /* Altura generosa para impacto visual */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    
    /* 4. CAPAS */
    z-index: 0; 
}

/* Sombra oscura sobre la imagen para mejorar contraste del menú */
.nc-services-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
    pointer-events: none;
}

/* --- FIX PARA EL MENÚ DE NAVEGACIÓN --- */
/* Asegura que la barra de menú esté siempre encima de la imagen */
.navbar, .fixed-top {
    z-index: 9999 !important;
    background-color: transparent !important; 
    border: none !important;
    box-shadow: none !important;
}

/* --- BLOQUES DE SECCIÓN (Espaciado y Layout) --- */
.nc-section-block {
    padding: 80px 0; /* Espacio vertical generoso */
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre el hero */
    background-color: var(--nett-light-bg); /* Por defecto fondo blanco */
}

.nc-flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- COLORES DE FONDO --- */
/* Bloque Blanco */
.nc-bg-white {
    background-color: var(--nett-light-bg) !important;
    color: var(--nett-text);
}
.nc-bg-white h1, .nc-bg-white h3 {
    color: var(--nett-blue) !important;
    font-weight: 700;
}
.nc-bg-white p {
    color: #444;
}

/* Bloque Oscuro (Azul Nettcars) */
.nc-bg-dark {
    background-color: var(--nett-blue) !important;
    color: #ffffff !important;
}
.nc-bg-dark h3 {
    color: #ffffff !important;
    font-weight: 700;
}
.nc-bg-dark p {
    color: #e0e0e0 !important; /* Gris muy claro para lectura sobre azul */
}

/* --- ELEMENTOS DE TEXTO --- */
.nc-title-main {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}
.nc-text-lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- ITEMS DE SERVICIO --- */
.nc-service-item {
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
}
.nc-service-item h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.6rem;
}
.nc-service-item p {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 95%;
    margin: 0 auto;
}

/* --- IMÁGENES (Hover Effect) --- */
.nc-img-hover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px; /* Redondeo suave */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.nc-img-hover:hover {
    transform: translateY(-8px); /* Se eleva */
    box-shadow: 0 20px 40px rgba(0,0,0,0.25); /* Sombra profunda */
}

/* --- BOTÓN CTA --- */
.nc-btn-pill {
    border-radius: 50px !important;
    padding: 16px 45px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--nett-blue) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(24, 27, 69, 0.3);
    margin-top: 20px;
    display: inline-block;
}

.nc-btn-pill:hover {
    background-color: #2a3075 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 27, 69, 0.4);
    text-decoration: none !important;
    color: white !important;
}

/* Responsive Ajustes */
@media (max-width: 768px) {
    .nc-services-hero { 
        height: 350px !important; 
        margin-top: -100px !important; 
    }
    .nc-section-block { padding: 50px 0; }
    .nc-title-main { font-size: 2rem; }
    .nc-service-item { padding: 10px; }
}

/* =============================================
   8. EFECTO SCROLL EN MENÚ
   ============================================= */

/* Añadimos una transición suave para que el cambio de color no sea brusco */
.navbar, .fixed-top {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

/* Esta es la clase que el JavaScript activará al bajar */
.navbar.scrolled-mode {
    background-color: #181B45 !important; /* Azul Corporativo Sólido */
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important; /* Sombra para separarlo del contenido */
    padding-top: 10px !important; /* Un poco más compacto */
    padding-bottom: 10px !important;
}

/* =============================================
   10. PÁGINA EQUIPO
   ============================================= */

/* --- HERO SOLO IMAGEN (Con Sombreado para el Header) --- */
.nc-team-hero-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    margin-top: -135px; /* Sube detrás del menú */
    margin-bottom: 0;
}

.nc-team-hero {
    background-image: url('/Generated Image November 08 2025 - 933PM.png'); /* ajusta si cambias el web file */
    height: 450px;
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

/* Sombreado superior para que se lea el menú */
.nc-team-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0) 100%
    );
    z-index: 1;
}

/* Sombra suave inferior hacia el blanco */
.nc-team-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

/* --- TARJETAS PERSONAS --- */
.nc-person-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nc-person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nc-person-img {
    height: 250px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.nc-person-info {
    padding: 20px 15px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.nc-person-info h3 {
    color: #181B45;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.nc-person-info p {
    color: #666;
    margin: 0;
}

/* Tarjeta CTA "Tú aquí" */
.nc-person-card.nc-card-cta {
    border: 2px dashed #181B45;
    background: transparent;
    box-shadow: none;
    opacity: 0.7;
}

.nc-person-card.nc-card-cta:hover {
    opacity: 1;
    background: rgba(24, 27, 69, 0.03);
}

.nc-card-cta .nc-person-info {
    justify-content: center;
    align-items: center;
}

/* --- FLEX GRID EQUIPO --- */
.flex-row-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.flex-row-center > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.mb-grid {
    margin-bottom: 30px;
}

/* =======================================================
   FIX PÁGINA EQUIPO - FORMULARIO "WHITE CARD"
   (Blindado con #join-us para no romper la Home)
   ======================================================= */

/* 1. EL CONTENEDOR (SOLO DENTRO DE JOIN-US) */
#join-us .nc-entity-form-wrapper {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    border: 1px solid rgba(0,0,0,0.1);
    color: #181B45 !important; 
}

/* 2. FORZAR QUE LAS TABLAS INTERNAS SEAN OSCURAS */
#join-us .nc-entity-form-wrapper .crmEntityFormView,
#join-us .nc-entity-form-wrapper table,
#join-us .nc-entity-form-wrapper tbody,
#join-us .nc-entity-form-wrapper tr,
#join-us .nc-entity-form-wrapper td {
    background-color: transparent !important;
    border: none !important;
    color: #181B45 !important; /* Texto Azul Oscuro */
}

/* 3. TÍTULOS Y ETIQUETAS */
#join-us .nc-entity-form-wrapper h3,
#join-us .nc-entity-form-title,
#join-us .nc-entity-form-wrapper label,
#join-us .nc-entity-form-wrapper .info,
#join-us .nc-entity-form-wrapper span {
    color: #181B45 !important;
    font-weight: 700 !important;
}

#join-us .nc-entity-form-wrapper h3,
#join-us .nc-entity-form-title {
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    font-size: 1.8rem !important;
}

/* 4. INPUTS, SELECTS Y TEXTAREAS */
#join-us .nc-entity-form-wrapper input.form-control,
#join-us .nc-entity-form-wrapper select.form-control,
#join-us .nc-entity-form-wrapper textarea.form-control,
#join-us .nc-entity-form-wrapper input[type="text"],
#join-us .nc-entity-form-wrapper input[type="email"],
#join-us .nc-entity-form-wrapper input[type="tel"] {
    background-color: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    color: #000000 !important;
    border-radius: 6px !important;
    height: 45px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05) !important;
}

/* Efecto Focus */
#join-us .nc-entity-form-wrapper input:focus,
#join-us .nc-entity-form-wrapper select:focus,
#join-us .nc-entity-form-wrapper textarea:focus {
    background-color: #ffffff !important;
    border-color: #c51515 !important;
    box-shadow: 0 0 0 3px rgba(197, 21, 21, 0.1) !important;
}

/* 5. BOTÓN DE ENVÍO */
#join-us .nc-entity-form-wrapper input[type="submit"],
#join-us .nc-entity-form-wrapper button.btn-primary {
    background-color: #c51515 !important;
    border: none !important;
    color: #ffffff !important;
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
}

#join-us .nc-entity-form-wrapper input[type="submit"]:hover {
    background-color: #a51212 !important;
}

/* 6. CORRECCIONES MENORES */
#join-us .nc-entity-form-wrapper .text-muted {
    color: #6b7280 !important;
}

/* Ajuste del mensaje de éxito + botón X SOLO en la sección #join-us */
#join-us .alert {
    position: relative;
    padding-right: 2.5rem;      /* espacio para la X */
}

/* Botón X pequeñito a la derecha, sin fondo rojo */
#join-us .alert .close {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    width: auto !important;
    padding: 0 !important;
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
}

#join-us .alert .close:hover {
    opacity: 1;
    cursor: pointer;
}


/* =============================================
   11. PÁGINA CONTACTO (DEFINITIVO)
   ============================================= */

/* --- 1. HERO IMAGE (FONDO COCHE) --- */
.nc-contact-hero-img {
    background-image: url('/Generated Image November 05 2025 - 454PM.png');
    height: 500px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

/* Sombra degradada superior para que se lea el menú */
.nc-contact-hero-img::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* --- 2. CONTENEDOR DEL FORMULARIO (TARJETA OSCURA) --- */
/* Afecta solo al ID contact-section-wrapper para no romper otras páginas */

#contact-section-wrapper .nc-entity-form-wrapper {
    background-color: rgba(20, 20, 20, 0.95) !important; /* Fondo casi negro sólido */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- 3. LIMPIEZA DE ESTRUCTURA (TABLAS TRANSPARENTES) --- */
/* Elimina los fondos blancos/grises que Dynamics pone por defecto en las tablas */
#contact-section-wrapper table, 
#contact-section-wrapper tbody, 
#contact-section-wrapper tr, 
#contact-section-wrapper td,
#contact-section-wrapper .crmEntityFormView {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
}

/* --- 4. TIPOGRAFÍA (TODO BLANCO) --- */
/* Títulos de sección (Legend, H3, H4) */
#contact-section-wrapper legend,
#contact-section-wrapper h3, 
#contact-section-wrapper h4,
#contact-section-wrapper .section-title,
#contact-section-wrapper .tab-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Línea divisoria blanca */
    padding-bottom: 10px;
    margin-bottom: 20px;
    width: 100%;
    display: block;
}

/* Etiquetas de campos, textos de ayuda y spans */
#contact-section-wrapper label,
#contact-section-wrapper span,
#contact-section-wrapper p,
#contact-section-wrapper .info {
    color: #ffffff !important;
    font-weight: 500;
    border: none !important;
    background-color: transparent !important;
}

/* --- 5. INPUTS (CAMPOS BLANCOS / TEXTO NEGRO) --- */
#contact-section-wrapper input.form-control,
#contact-section-wrapper select.form-control,
#contact-section-wrapper textarea.form-control,
#contact-section-wrapper input[type="text"],
#contact-section-wrapper input[type="email"],
#contact-section-wrapper input[type="tel"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    height: 45px !important; /* Altura cómoda */
    padding: 10px !important;
}

/* Efecto Focus al hacer clic */
#contact-section-wrapper input:focus,
#contact-section-wrapper select:focus,
#contact-section-wrapper textarea:focus {
    box-shadow: 0 0 0 3px #3b82f6 !important; /* Resplandor azul */
    border-color: #3b82f6 !important;
    outline: none;
}

/* --- 6. BOTÓN DE ENVÍO --- */
#contact-section-wrapper input[type="submit"],
#contact-section-wrapper button.btn-primary {
    background-color: #3b82f6 !important; /* Azul Corporativo */
    color: #ffffff !important;
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contact-section-wrapper input[type="submit"]:hover {
    background-color: #ffffff !important; /* Fondo blanco al pasar ratón */
    color: #3b82f6 !important; /* Texto azul */
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

/* --- 7. AJUSTES FINALES --- */
/* Ocultar textos innecesarios o ponerlos gris claro */
#contact-section-wrapper .text-muted {
    color: #cccccc !important;
}
/* Estilo para mensajes de error */
#contact-section-wrapper .validation-summary-errors ul li,
#contact-section-wrapper .validator-text {
    color: #ff9999 !important; /* Rojo claro legible sobre negro */
}

/* =============================================
   12. PÁGINA ACCESO CLIENTES
   ============================================= */

/* Imagen Hero específica para Acceso Clientes */
.nc-access-hero-img {
    /* Puedes cambiar esta URL por una foto de un dashboard, llaves o un coche premium */
    background-image: url('/Generated Image November 06 2025 - 536PM.png'); 
    height: 450px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

/* Sombra superior para el menú */
.nc-access-hero-img::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Oscurecemos un poco más esta imagen para dar sensación de privacidad/login */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Ajustes finos para el formulario manual */
#ncGateForm label {
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
    color: white !important; /* Aseguramos blanco */
}

#ncGateForm .form-control {
    height: 50px; /* Inputs más altos y cómodos */
    font-size: 1.1rem;
}

/* =============================================
   13. PÁGINA ACCESO DENEGADO (FIXED LAYOUT)
   ============================================= */

/* (bloque base duplicado se gestiona más abajo, aquí dejamos solo los estilos únicos) */

.nc-denied-card h1 {
    color: white !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.nc-lead {
    font-size: 1.2rem;
    color: #eee;
    margin-bottom: 30px;
}

/* =============================================
   14. PÁGINA MI PEDIDO
   ============================================= */

/* Imagen Hero: Usamos una de transporte o carretera */
.nc-order-hero-img {
    background-image: url('/Generated Image November 06 2025 - 1011AM.png'); /* Camión transporte */
    height: 400px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

/* Sombra superior para menú */
.nc-order-hero-img::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
}

/* --- FIX PARA CAMPOS DE SOLO LECTURA --- */
/* Aseguramos que los datos del resumen se lean bien sobre fondo oscuro */
.nc-read-only-fix input[readonly], 
.nc-read-only-fix input[disabled],
.nc-read-only-fix textarea[readonly] {
    background-color: #ffffff !important; /* Fondo blanco */
    color: #555 !important; /* Texto gris oscuro */
    border: 1px solid #ccc !important;
    cursor: default;
    font-weight: 500;
}

/* Estilo para los botones de subida de archivos (file input) */
.nc-entity-form-wrapper input[type="file"] {
    background-color: white !important;
    padding: 10px;
    border-radius: 5px;
    color: #333 !important;
    width: 100%;
}

/* =============================================
   15. PÁGINA POLÍTICA PRIVACIDAD
   ============================================= */

/* Cabecera Azul Corporativa */
.nc-policy-header {
    background-color: #181B45;
    padding: 120px 0 80px; /* Espacio superior para el menú fixed */
    text-align: center;
    color: white;
    margin-bottom: -40px; /* Efecto de superposición con la tarjeta blanca */
}

.nc-policy-header h1 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: 1px;
    color: white !important;
}

.nc-policy-divider {
    width: 60px;
    height: 4px;
    background-color: #c51515; /* Acento rojo */
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Tarjeta de Contenido */
.nc-policy-card {
    background: white;
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

/* Tipografía del Documento */
.nc-policy-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify; /* Justificado para look de documento formal */
}

.nc-policy-title {
    color: #181B45;
    font-weight: 800;
    font-size: 1.8rem;
    margin-top: 20px;
    margin-bottom: 25px;
    border-left: 5px solid #181B45;
    padding-left: 15px;
}

.nc-policy-card h3 {
    color: #181B45;
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Listas con viñetas personalizadas */
.nc-policy-card ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.nc-policy-card ul li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
    list-style-type: disc; /* Asegura puntos visibles */
}

.nc-policy-card strong {
    color: #181B45;
    font-weight: 700;
}

/* Separadores */
.nc-separator {
    margin: 50px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Pie de documento */
.nc-policy-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
    text-align: right;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .nc-policy-card {
        padding: 30px 20px;
    }
    .nc-policy-header h1 {
        font-size: 1.5rem;
    }
}

/* =============================================
   15. PÁGINA PROPUESTA (FINAL AJUSTADO)
   ============================================= */

/* --- HERO ESPECÍFICO --- */
.nc-proposal-hero-img {
    background-image: url('/Generated Image November 06 2025 - 536PM.png');
    height: 350px;
    background-position: center;
    background-size: cover;
    position: relative;
}
/* Sombra inferior del hero */
.nc-proposal-hero-img::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

/* --- TARJETA PRINCIPAL (Debajo del Hero) --- */
.nc-proposal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin: 30px auto 0 auto; /* Separación positiva del hero */
    position: relative;
    border: 1px solid #e0e0e0;
}

/* Encabezado Coche */
.nc-prop-header { text-align: center; margin-bottom: 40px; }
.nc-prop-header h1 { color: #181B45; font-size: 2.2rem; font-weight: 800; margin: 0; }
.nc-prop-subtitle { color: #666; font-size: 1.2rem; margin-top: 5px; }

/* --- GALERÍA (Carrusel) --- */
.nc-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.nc-gallery-main img { width: 100%; height: 500px; object-fit: cover; display: block; }

.nc-gallery-thumbs {
    display: flex; gap: 12px; overflow-x: auto; padding: 5px 2px;
}
.nc-gallery-thumbs img {
    width: 100px; height: 75px; object-fit: cover; border-radius: 6px; 
    cursor: pointer; opacity: 0.5; transition: all 0.3s ease;
    border: 3px solid transparent; /* Reserva espacio */
}
/* Efecto selección */
.nc-gallery-thumbs img:hover { opacity: 0.8; }
.nc-gallery-thumbs img.active {
    opacity: 1 !important;
    border: 3px solid #00d2a8 !important; /* Borde verde fuerte */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- SECCIONES INTERNAS --- */
.nc-section-box { margin-bottom: 50px; }
.nc-section-box h3 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px; margin-bottom: 25px;
    color: #181B45; font-size: 1.4rem; font-weight: 700;
}

.nc-specs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px;
}
.nc-spec-item {
    background: #f8f9fa; padding: 15px; border-radius: 8px; text-align: center; border: 1px solid #eee;
}
.nc-spec-item strong { display: block; font-size: 0.8rem; color: #888; text-transform: uppercase; }
.nc-spec-item span { display: block; font-size: 1.1rem; font-weight: 600; color: #181B45; margin-top: 5px; }

.nc-features-list {
    list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px;
}
.nc-features-list li {
    padding-left: 25px; position: relative; color: #444;
}
.nc-features-list li::before {
    content: "✓"; color: #00d2a8; font-weight: bold; position: absolute; left: 0;
}

/* --- PRECIOS --- */
.nc-price-list { list-style: none; padding: 0; margin: 0; }
.nc-price-list li {
    display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #eee; align-items: center;
}
.nc-price-col { text-align: right; }
.nc-price-negative { color: #27ae60; font-weight: 700; }
.nc-note-inline { display: block; font-size: 0.8rem; color: #888; font-style: italic; }

.nc-total-row {
    background: #181B45; color: white;
    padding: 20px 25px !important; border-radius: 8px;
    margin-top: 20px; font-size: 1.2rem;
}
.nc-total-row strong { font-size: 1.8rem; color: #00d2a8; }
.nc-legal-footer { font-size: 0.85rem; color: #999; text-align: center; margin-top: 15px; }

/* --- AGENTE --- */
.nc-agent-section {
    background: #f9fafb; padding: 30px; border-radius: 12px; margin-top: 40px; border: 1px solid #eee;
}
.nc-agent-card { display: flex; align-items: center; gap: 20px; margin-top: 15px; }
.nc-agent-avatar {
    width: 60px; height: 60px; background: #e0e0e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.nc-agent-info h4 { margin: 0; color: #181B45; }
.nc-agent-contact { margin: 2px 0; color: #666; font-size: 0.95rem; }
.nc-agent-contact a { color: #181B45; text-decoration: none; font-weight: 500; }

/* --- BOTONES IGUALADOS --- */
.nc-action-buttons { 
    display: flex; justify-content: center; gap: 20px; margin: 40px 0; flex-wrap: wrap;
}

.nc-btn-accept, .nc-btn-reject {
    border-radius: 50px !important;
    padding: 0 30px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 1rem !important;
    min-width: 220px; /* Ancho fijo igual para ambos */
    height: 60px;     /* Alto fijo igual */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Aceptar: Sólido */
.nc-btn-accept {
    background-color: #00d2a8 !important;
    border: 2px solid #00d2a8 !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(0, 210, 168, 0.4);
}
.nc-btn-accept:hover {
    background-color: #00b894 !important;
    transform: translateY(-2px);
}

/* Rechazar: Borde */
.nc-btn-reject {
    background-color: transparent !important;
    border: 2px solid #e74c3c !important;
    color: #e74c3c !important;
}
.nc-btn-reject:hover {
    background-color: #fff5f5 !important;
    color: #c0392b !important;
    transform: translateY(-2px);
}

/* Estados de carga/error */
.nc-loading-state, .nc-alert-box, .nc-success-message, .nc-info-message {
    text-align: center; padding: 40px; border-radius: 12px; margin-bottom: 20px;
}
.nc-error { background: #ffe6e6; color: #c0392b; border: 1px solid #ffcccc; }
.nc-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.nc-success-message { background: #d4edda; color: #155724; }
.nc-info-message { background: #e2e3e5; color: #383d41; }

.nc-spinner {
    border: 4px solid #f3f3f3; border-top: 4px solid #181B45; border-radius: 50%; width: 40px; height: 40px;
    animation: spin 1s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .nc-proposal-card { padding: 20px; margin-top: 20px; }
    .nc-gallery-main img { height: 300px; }
    .nc-action-buttons { flex-direction: column; }
    .nc-btn-accept, .nc-btn-reject { width: 100%; }
}

/* =============================================
   13 & 16. PÁGINAS DE ERROR (404 Y DENEGADO)
   ============================================= */

/* 1. FONDO INAMOVIBLE */
.nc-denied-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/Generated Image November 06 2025 - 536PM.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(30%); /* Oscuro para resaltar textos */
    z-index: 0;
}

/* 2. CONTENEDOR FLOTANTE */
.nc-denied-container {
    position: relative;
    z-index: 10;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 50px;
}

/* 3. TARJETA DARK GLASS */
.nc-denied-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    color: white;
}

/* Caja de Causas/Sugerencias */
.nc-causes-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 30px;
    border-left: 4px solid #c51515; /* Acento rojo */
}

.nc-causes-box h4 {
    color: #ffcccc;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.nc-causes-box ul {
    padding-left: 20px;
    margin-bottom: 0;
    color: #ddd;
}

.nc-causes-box li { margin-bottom: 5px; }

/* 4. BOTONES BLANCOS */
.nc-actions {
    display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;
}

.btn-white {
    background-color: #ffffff !important;
    color: #181B45 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-white:hover {
    background-color: #e6e6e6 !important;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}
.btn-outline-white:hover {
    border-color: #ffffff !important;
    background-color: rgba(255,255,255,0.1) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nc-denied-background { position: fixed; }
    .nc-denied-container { min-height: 100vh; padding: 40px 15px; }
}

/* =======================================================
   FIX MENSAJE DE ÉXITO (LA CAJA VERDE)
   ======================================================= */

/* 4. Quitar selección azul extraña si aparece */
.alert-success *::selection {
    background: transparent;
    color: inherit;
}

/* =======================================================
   FIX MENSAJE DE ÉXITO (LA CAJA VERDE)
   ======================================================= */

/* 1. Contenedor del mensaje */
.nc-hero-form-card .alert,
.nc-entity-form-wrapper .alert,
#contact-section-wrapper .alert,
.alert.alert-success {
    position: relative !important;
    margin-top: 15px !important;
    padding: 15px 40px 15px 15px !important; /* Espacio extra a la derecha para la X */
    border-radius: 8px !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    
    /* Asegurar colores correctos */
    background-color: #d4edda !important; /* Verde claro fondo */
    color: #155724 !important; /* Verde oscuro texto */
    border: 1px solid #c3e6cb !important;
    box-shadow: none !important;
}

/* 2. ARREGLO DE LA "X" (CERRAR) */
/* Reseteamos todas las propiedades que puedan estar causando el bloque rojo */
.alert .close {
    position: absolute !important;
    top: 50% !important;           /* Centrado vertical */
    transform: translateY(-50%) !important;
    right: 15px !important;        /* Pegado a la derecha */
    
    width: auto !important;
    height: auto !important;
    
    background: transparent !important; /* CRÍTICO: Quita el fondo rojo */
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    
    font-size: 1.5rem !important;  /* Tamaño de la X */
    font-weight: 700 !important;
    color: #155724 !important;     /* Verde oscuro para la X */
    text-shadow: none !important;
    
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    opacity: 0.5 !important;
    cursor: pointer !important;
    outline: none !important;
}

.alert .close:hover {
    opacity: 1 !important;
    background: transparent !important;
    color: #0c3d15 !important; /* Un poco más oscuro al pasar el ratón */
}

/* Asegurarse de que no haya span interno molestando */
.alert .close span {
    display: inline-block;
    vertical-align: middle;
}
