/* =============================================
   NETTCARS - CSS COMPLETO FINAL CORREGIDO
   Versión: 8.0 - Enero 2026
   Todos los fixes críticos aplicados
   ============================================= */

/* =============================================
   ÍNDICE / TABLE OF CONTENTS
   =============================================
   1.  VARIABLES GLOBALES
   2.  RESET Y BASE
   3.  UTILIDADES GENERALES
   4.  HEADER PRINCIPAL (NETT-HEADER)
   5.  HERO - PÁGINA PRINCIPAL (HOME)
   6.  SECCIÓN SERVICIOS (HOME)
   7.  SECCIÓN PARTNERS (HOME)
   8.  HERO - PÁGINAS INTERNAS
   9.  PÁGINA EQUIPO
   10. PÁGINA CONTACTO
   11. FORMULARIOS - GENERAL
   12. RECAPTCHA
   13. PÁGINAS LEGALES Y ERROR
   14. BOTONES GENERALES
   15. ALERTAS Y MENSAJES
   16. ACCESO CLIENTES
   17. POLÍTICA PRIVACIDAD/COOKIES
   18. PÁGINA PROPUESTA
   19. RESPONSIVE - TABLET
   20. RESPONSIVE - MÓVIL
   21. ANIMACIONES
   22. PRINT & UTILIDADES FINALES
   23. FOOTER NETTCARS - CSS
   ============================================= */

/* =============================================
   1. VARIABLES GLOBALES
   ============================================= */
:root {
    /* Colores principales */
    --nett-blue: #181b45;
    --nett-blue-light: #2a3075;
    --nett-accent: #c51515;
    --nett-accent-hover: #a00f0f;
    --nett-dark: #0a0a0a;
    --nett-success: #00d2a8;
    --nett-success-hover: #01886d;
    
    /* Fondos */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #121212;
    
    /* Textos */
    --text-dark: #181b45;
    --text-body: #444444;
    --text-light: #666666;
    --text-white: #ffffff;
    
    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Tipografía */
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    
    /* Bordes */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    
    /* Alturas y espaciados (nuevos) */
    --header-height: 90px;
    --hero-internal-height: 450px;
    --hero-legal-height: 400px;
    --card-overlap-lg: -60px;
    --card-overlap-md: -40px;
    
    /* Grid gaps */
    --grid-gap-lg: 40px;
    --grid-gap-md: 25px;
    --grid-gap-sm: 15px;
    
    /* Hover effects */
    --hover-lift: translateY(-8px);
    --hover-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

/* =============================================
   2. RESET Y BASE
   ============================================= */
html.nettcars *, 
html.nettcars *::before, 
html.nettcars *::after {
    box-sizing: border-box;
}

/* Ocultar header nativo de Power Pages */
html.nettcars header > .navbar:not(.nett-header),
html.nettcars .xrm-editable-header {
    display: none !important;
}

html.nettcars body {
    font-family: var(--font-primary);
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: var(--header-height);
}

/* =============================================
   3. UTILIDADES GENERALES
   ============================================= */
html.nettcars .text-white { color: var(--text-white) !important; }
html.nettcars .text-primary { color: var(--nett-blue) !important; }
html.nettcars .text-accent { color: var(--nett-accent) !important; }
html.nettcars .nc-text-shadow { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9); }
html.nettcars .nc-section-padding { padding: 80px 0; }
html.nettcars { scroll-behavior: smooth; }

html.nettcars ::selection {
    background: var(--nett-blue);
    color: var(--text-white);
}

html.nettcars :focus-visible {
    outline: 3px solid var(--nett-blue);
    outline-offset: 2px;
}

html.nettcars .mb-grid { margin-bottom: 30px; }
html.nettcars .flex-row-center { display: flex; flex-wrap: wrap; justify-content: center; }

/* =============================================
   4. HEADER PRINCIPAL (NETT-HEADER)
   ============================================= */
html.nettcars .navbar.nett-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999 !important;
    background: transparent;
    padding: 20px 0;
    transition: all var(--transition-slow);
    border: none !important;
    box-shadow: none;
}

html.nettcars .navbar.nett-header > .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

html.nettcars .navbar.nett-header .brand-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-normal);
}

html.nettcars .navbar.nett-header .nav-link {
    color: var(--text-white) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 8px 18px !important;
    transition: color var(--transition-normal), opacity var(--transition-normal);
    opacity: 0.9;
}

html.nettcars .navbar.nett-header .nav-link:hover {
    opacity: 1;
    color: var(--text-white) !important;
}

html.nettcars .navbar.nett-header .custom-navbar-toggler {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 10px;
}

html.nettcars .navbar.nett-header .custom-navbar-toggler i {
    color: var(--text-white);
    font-size: 1.6rem;
    transition: color var(--transition-normal);
}

/* Estado Scrolled */
html.nettcars .navbar.nett-header.scrolled-mode {
    background: var(--bg-white) !important;
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

html.nettcars .navbar.nett-header.scrolled-mode .brand-logo { filter: none; }
html.nettcars .navbar.nett-header.scrolled-mode .nav-link { color: var(--nett-blue) !important; }
html.nettcars .navbar.nett-header.scrolled-mode .nav-link:hover { color: var(--nett-accent) !important; }
html.nettcars .navbar.nett-header.scrolled-mode .custom-navbar-toggler i { color: var(--nett-blue); }

/* Botones del Header */
html.nettcars .navbar.nett-header .btn-cta-red,
html.nettcars .navbar.nett-header .header-cta .btn-cta-red {
    background-color: var(--nett-accent) !important;
    color: var(--text-white) !important;
    border: 2px solid var(--nett-accent) !important;
    border-radius: var(--radius-pill) !important;
    padding: 10px 28px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(197, 21, 21, 0.3);
}

html.nettcars .navbar.nett-header .btn-cta-red:hover {
    background-color: var(--nett-accent-hover) !important;
    border-color: var(--nett-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 21, 21, 0.4);
}

html.nettcars .navbar.nett-header .btn-cta-white,
html.nettcars .navbar.nett-header .header-cta .btn-cta-white {
    background-color: var(--bg-white) !important;
    color: var(--nett-blue) !important;
    border: 2px solid var(--bg-white) !important;
    border-radius: var(--radius-pill) !important;
    padding: 10px 28px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

html.nettcars .navbar.nett-header .btn-cta-white:hover {
    background-color: var(--nett-blue) !important;
    color: var(--text-white) !important;
    border-color: var(--nett-blue) !important;
    transform: translateY(-2px);
}

html.nettcars .navbar.nett-header.scrolled-mode .btn-cta-white {
    border-color: var(--nett-blue) !important;
}

html.nettcars .header-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Header visibility en páginas internas */
html.nettcars body:not(.nc-home) .navbar.nett-header {
    background: var(--bg-white) !important;
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

html.nettcars body:not(.nc-home) .navbar.nett-header .brand-logo {
    filter: none !important;
}

html.nettcars body:not(.nc-home) .navbar.nett-header .nav-link {
    color: var(--nett-blue) !important;
    opacity: 1;
}

html.nettcars body:not(.nc-home) .navbar.nett-header .nav-link:hover {
    color: var(--nett-accent) !important;
}

html.nettcars body:not(.nc-home) .navbar.nett-header .custom-navbar-toggler i {
    color: var(--nett-blue) !important;
}

html.nettcars body.nc-home .navbar.nett-header {
    background: transparent !important;
    box-shadow: none;
}

/* =============================================
   5. HERO - PÁGINA PRINCIPAL (HOME)
   ============================================= */
html.nettcars .nc-hero-image {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

html.nettcars .nc-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/Fondopantallappal.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

html.nettcars .nc-hero-image .video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.45) 40%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 1;
}

html.nettcars .nc-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 0px; /* Altura del header (50px logo + 40px padding) */
}

html.nettcars .nc-hero-content .row {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Vuelve a center para centrado vertical */
    justify-content: center;
    padding-top: 60px;
}

html.nettcars .nc-hero-content h1 {
    font-size: 4.5rem !important; 
    font-weight: 900 !important;
    color: var(--text-white);
    line-height: 1.1 !important;
    letter-spacing: -1px;
    margin-top: 20px; /* AÑADE ESTO para ajustar fino */
    margin-bottom: 30px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.9) !important;
    
    /* Sombra fuerte para máximo contraste sobre la foto */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.9) !important;
}

/* RESPONSIVE: Ajustamos para que no se salga en móviles */
@media (max-width: 1199px) {
    html.nettcars .nc-hero-content h1 { font-size: 3.5rem !important; }
}

@media (max-width: 991px) {
    html.nettcars .nc-hero-content h1 { font-size: 2.8rem !important; }
}

@media (max-width: 767px) {
    html.nettcars .nc-hero-content h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
}

html.nettcars .nc-hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin: 30px auto 40px;
    padding: 0;
    max-width: 900px;
}

html.nettcars .nc-glass-chip {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
}

html.nettcars .nc-glass-chip:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

html.nettcars .nc-glass-chip i {
    color: var(--nett-accent);
    font-size: 1.1rem;
}

html.nettcars .nc-hero-how {
    margin-top: 60px;
    margin-bottom: 50px;
}

html.nettcars .nc-hero-subtitle {
    color: var(--text-white) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 50px;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

/* Steps Grid */
html.nettcars .nc-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap-md);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 50px;
}

html.nettcars .nc-step-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

html.nettcars .nc-step-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--hover-shadow);
}

html.nettcars .nc-step__icon {
    width: 60px;
    height: 60px;
    background: var(--nett-blue);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(24, 27, 69, 0.3);
}

html.nettcars .nc-step-card h4 {
    color: var(--nett-blue);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

html.nettcars .nc-step-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* CTA del Hero */
html.nettcars .nc-hero-cta {
    margin-top: 50px;
    margin-bottom: 20px;
}

html.nettcars .nc-btn-hero-cta,
html.nettcars .nc-hero-cta .nc-btn-pill {
    background-color: var(--nett-accent) !important;
    color: var(--bg-white) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 18px 50px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    display: inline-block;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

html.nettcars .nc-btn-hero-cta:hover,
html.nettcars .nc-hero-cta .nc-btn-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
    background-color: var(--nett-accent-hover) !important;
}

html.nettcars .nc-hero-cta-caption {
    color: var(--text-white) !important;
    font-size: 1rem;
    margin-top: 20px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* =============================================
   6. SECCIÓN SERVICIOS (HOME)
   ============================================= */
html.nettcars .nc-section-block {
    padding: 80px 0;
    position: relative;
}

html.nettcars .nc-bg-white { background-color: var(--bg-white); }
html.nettcars .nc-bg-dark { background-color: var(--nett-blue); }
html.nettcars .nc-bg-dark h3,
html.nettcars .nc-bg-dark p { color: var(--text-white); }

html.nettcars .nc-title-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--nett-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

html.nettcars .nc-text-lead {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

html.nettcars .nc-service-item {
    padding: 30px 20px;
    text-align: center;
}

html.nettcars .nc-service-item h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

html.nettcars .nc-service-item p {
    font-size: 1.05rem;
    line-height: 1.6;
}

html.nettcars .nc-img-hover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

html.nettcars .nc-img-hover:hover {
    transform: var(--hover-lift);
    box-shadow: var(--hover-shadow);
}

/* === ESTILOS PARA LA CABECERA DE SERVICIOS === */
html.nettcars #services.nc-section-block {
    background-color: var(--nett-blue) !important;
}

html.nettcars #services .nc-title-main {
    color: var(--text-white) !important;
}

html.nettcars #services .nc-text-lead {
    color: rgba(255, 255, 255, 0.9) !important;
}


/* =============================================
   7. SECCIÓN PARTNERS (HOME)
   ============================================= */
html.nettcars .nc-partners {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 60px 0;
}

html.nettcars .nc-partners__head {
    text-align: center;
    margin-bottom: 50px;
}

html.nettcars .nc-partners__kicker {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(0,0,0,.45);
    margin-bottom: 12px;
    font-weight: 600;
}

html.nettcars .nc-partners__title {
    margin: 0;
    font-weight: 800;
    color: #181B45;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

html.nettcars .nc-partners__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap-lg);
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

html.nettcars .nc-partners__card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 20px;
    padding: 35px 25px;
    background: linear-gradient(180deg, rgba(24,27,69,.02), rgba(255,255,255,1));
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    transition: all var(--transition-normal);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

html.nettcars .nc-partners__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    border-color: rgba(24,27,69,.15);
}

html.nettcars .nc-partners__label {
    color: #181B45;
    opacity: 1;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-align: center;
}

html.nettcars .nc-partners__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    min-height: 70px;
}

html.nettcars .nc-partners__logos img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: .98;
    filter: none;
    transition: all var(--transition-normal);
}

html.nettcars .nc-partners__logos img:hover {
    transform: scale(1.05);
    opacity: 1;
}

html.nettcars .nc-partners__logos img[alt*="Trapiser"] { height: 44px; }
html.nettcars .nc-partners__logos img[alt*="Mutua"] { height: 48px; }
html.nettcars .nc-partners__logos img[alt*="Sabadell"] { height: 52px; }
html.nettcars .nc-partners__logos img[alt*="CEVA"] { height: 48px; }

/* =============================================
   8. HERO - PÁGINAS INTERNAS
   ============================================= */
html.nettcars .nc-team-hero-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

html.nettcars .nc-team-hero {
    height: var(--hero-internal-height);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    background-color: var(--nett-blue);
    background-image: linear-gradient(135deg, var(--nett-blue) 0%, #2a3075 50%, var(--nett-dark) 100%);
}

html.nettcars .nc-team-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

html.nettcars .nc-team-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-white) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}


/* =============================================
   9. PÁGINA EQUIPO
   ============================================= */
html.nettcars .nc-person-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

html.nettcars .nc-person-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--hover-shadow);
}

html.nettcars .nc-person-img {
    height: 280px;
    background-size: cover;
    background-position: center top;
    background-color: #e0e0e0;
}

html.nettcars .nc-person-info {
    padding: 25px;
    text-align: center;
}

html.nettcars .nc-person-info h3 {
    color: var(--nett-blue);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

html.nettcars .nc-person-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

html.nettcars .nc-card-cta {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e9f0 100%);
    border: 2px dashed #ccc;
}

/* =============================================
   10. PÁGINA CONTACTO
   ============================================= */
html.nettcars #join-us,
html.nettcars #contact-section-wrapper {
    background-color: var(--nett-blue) !important;
    background-image: linear-gradient(135deg, var(--nett-blue) 0%, var(--nett-blue-light) 100%) !important;
}

html.nettcars #join-us h2,
html.nettcars #join-us > div > div:first-child p,
html.nettcars #contact-section-wrapper h2,
html.nettcars #contact-section-wrapper > div > div > div > h3:first-child,
html.nettcars #contact-section-wrapper > p {
    color: var(--text-white) !important;
}

/* NUEVAS REGLAS - Añade esto aquí */

/* Estilos del formulario blanco */
html.nettcars #contact-section-wrapper .nc-entity-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-top: 4px solid var(--nett-accent);
    color: var(--nett-blue);
    max-width: 700px;
    margin: 0 auto;
}

/* Títulos del formulario */
html.nettcars #contact-section-wrapper h3,
html.nettcars #contact-section-wrapper .nc-entity-form-title {
    color: var(--nett-blue) !important;
    font-weight: 800 !important;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

/* Labels */
html.nettcars #contact-section-wrapper label {
    color: var(--nett-blue) !important;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: block;
}

/* Inputs */
html.nettcars #contact-section-wrapper input.form-control,
html.nettcars #contact-section-wrapper select.form-control,
html.nettcars #contact-section-wrapper textarea.form-control {
    background-color: #f9fafb !important;
    border: 2px solid #e5e7eb !important;
    color: var(--nett-blue) !important;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s;
}

html.nettcars #contact-section-wrapper input.form-control:focus,
html.nettcars #contact-section-wrapper select.form-control:focus,
html.nettcars #contact-section-wrapper textarea.form-control:focus {
    border-color: var(--nett-accent) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(197, 21, 21, 0.1) !important;
    outline: none !important;
}

/* Radio buttons alineados */
html.nettcars #contact-section-wrapper .control span,
html.nettcars #contact-section-wrapper td span {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 25px !important;
    margin-bottom: 10px !important;
}

html.nettcars #contact-section-wrapper input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 8px 0 0 !important;
    cursor: pointer;
    accent-color: var(--nett-blue);
}

html.nettcars #contact-section-wrapper span > label {
    margin-bottom: 0 !important;
    cursor: pointer;
    width: auto !important;
    font-weight: 500 !important;
}

html.nettcars #contact-section-wrapper br {
    display: none;
}

/* OCULTAR Radio buttons de consentimiento */
html.nettcars #contact-section-wrapper input[type="radio"][value="0"],
html.nettcars #contact-section-wrapper input[type="radio"][value="1"],
html.nettcars #contact-section-wrapper input[type="radio"][value="2"] {
    display: none !important;
}

html.nettcars #contact-section-wrapper td:has(input[type="radio"][value="0"]),
html.nettcars #contact-section-wrapper td:has(input[type="radio"][value="1"]) {
    display: none !important;
}

/* reCAPTCHA - Contenedor pequeño y ajustado */
html.nettcars #contact-recaptcha-wrapper {
    margin: 15px auto 10px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 5px !important;
    background: transparent !important;
    border: none !important;
    min-height: auto !important;
    max-width: 304px !important;
    transition: all 0.3s;
}

html.nettcars #g-recaptcha-contact {
    transform: scale(1);
    transform-origin: center;
}

html.nettcars #captcha-warning-msg {
    text-align: center;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    padding: 10px;
    margin: 10px 0 15px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Consentimiento checkbox */
html.nettcars #contact-section-wrapper .consent-wrapper {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
}

html.nettcars #contact-section-wrapper .consent-wrapper label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
}

html.nettcars #contact-section-wrapper .consent-wrapper input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    margin: 3px 0 0 0 !important;
    cursor: pointer;
    accent-color: var(--nett-blue);
}

html.nettcars #contact-section-wrapper .consent-wrapper a {
    color: var(--nett-accent);
    text-decoration: underline;
    font-weight: 600;
}

/* Botón de envío */
html.nettcars #contact-section-wrapper input[type="submit"],
html.nettcars #contact-section-wrapper button.btn-primary,
html.nettcars #contact-section-wrapper #InsertButton {
    background-color: var(--nett-accent) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px;
    padding: 16px 40px !important;
    width: 100%;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-top: 25px;
    transition: all 0.3s ease;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(197, 21, 21, 0.3);
}

html.nettcars #contact-section-wrapper input[type="submit"]:hover:not(:disabled),
html.nettcars #contact-section-wrapper #InsertButton:hover:not(:disabled) {
    background-color: var(--nett-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 21, 21, 0.4);
}

html.nettcars #contact-section-wrapper input[type="submit"]:disabled,
html.nettcars #contact-section-wrapper #InsertButton:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Mensaje de éxito */
html.nettcars #contact-section-wrapper .alert-success {
    background-color: #f0fdf4 !important;
    border: 2px solid #4ade80 !important;
    color: #14532d !important;
    text-align: center !important;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 1.2rem;
}

html.nettcars #contact-section-wrapper .alert-success .close {
    display: none !important;
}

html.nettcars #contact-section-wrapper .alert-success::before {
    content: "\2714";
    display: block;
    font-size: 4rem;
    color: #22c55e;
    margin: 0 auto 20px auto;
}

/* Responsive */
@media (max-width: 768px) {
    html.nettcars #contact-section-wrapper .nc-entity-form-wrapper {
        padding: 25px 20px;
    }

    html.nettcars #contact-section-wrapper h3 {
        font-size: 1.5rem;
    }

    html.nettcars #contact-section-wrapper .consent-wrapper {
        padding: 15px;
    }
}

/* =============================================
   11. FORMULARIOS - GENERAL
   ============================================= */
html.nettcars .nc-entity-form-wrapper {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--nett-accent) !important;
}

html.nettcars .nc-entity-form-title {
    color: var(--nett-blue) !important;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

html.nettcars .nc-entity-form-wrapper label {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}

html.nettcars .nc-entity-form-wrapper input:not([type="submit"]):not([type="button"]):not([type="file"]),
html.nettcars .nc-entity-form-wrapper select,
html.nettcars .nc-entity-form-wrapper textarea {
    background-color: #ffffff !important;
    border: 2px solid #ddd !important;
    color: var(--text-dark) !important;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    width: 100%;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

html.nettcars .nc-entity-form-wrapper input::placeholder,
html.nettcars .nc-entity-form-wrapper textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
    font-style: italic;
}

html.nettcars .nc-entity-form-wrapper input:focus::placeholder,
html.nettcars .nc-entity-form-wrapper textarea:focus::placeholder {
    color: #bbb !important;
}

html.nettcars .nc-entity-form-wrapper input:focus,
html.nettcars .nc-entity-form-wrapper select:focus,
html.nettcars .nc-entity-form-wrapper textarea:focus {
    background-color: var(--bg-white) !important;
    border-color: var(--nett-accent) !important;
    box-shadow: 0 0 0 3px rgba(197, 21, 21, 0.1) !important;
    outline: none !important;
}

html.nettcars .nc-entity-form-wrapper select option {
    background-color: #ffffff;
    color: var(--text-dark);
}

html.nettcars .nc-entity-form-wrapper input[type="file"] {
    background-color: var(--bg-white) !important;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 2px dashed #ddd !important;
}

html.nettcars .nc-entity-form-wrapper input[type="submit"],
html.nettcars .nc-entity-form-wrapper button[type="submit"],
html.nettcars .nc-entity-form-wrapper #InsertButton {
    background-color: var(--nett-accent) !important;
    color: var(--text-white) !important;
    border: none !important;
    border-radius: var(--radius-pill);
    padding: 18px 40px !important;
    width: 100%;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-top: 25px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(197, 21, 21, 0.3);
}

html.nettcars .nc-entity-form-wrapper input[type="submit"]:hover:not(:disabled),
html.nettcars .nc-entity-form-wrapper button[type="submit"]:hover:not(:disabled),
html.nettcars .nc-entity-form-wrapper #InsertButton:hover:not(:disabled) {
    background-color: var(--nett-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 21, 21, 0.4);
}

html.nettcars .nc-entity-form-wrapper input[type="submit"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #999 !important;
}

/* =============================================
   12. RECAPTCHA (ACTUALIZADO)
   ============================================= */
html.nettcars #contact-recaptcha-wrapper,
html.nettcars #cv-recaptcha-wrapper {
    margin: 15px auto 10px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px !important;
    background: rgba(248, 249, 250, 0.3) !important;
    border: 1px dashed #d1d5db !important;
    border-radius: 8px;
    transition: all 0.3s;
}

html.nettcars #g-recaptcha-cv,
html.nettcars #g-recaptcha-contact {
    transform: scale(1);
    transform-origin: center center;
    position: relative;
    z-index: 6;
}

html.nettcars #g-recaptcha-cv iframe,
html.nettcars #g-recaptcha-contact iframe {
    display: block !important;
    max-width: 100% !important;
}

html.nettcars #captcha-warning-msg,
html.nettcars #cv-captcha-warning {
    text-align: center;
    color: #d32f2f !important;
    background: rgba(211, 47, 47, 0.1);
    padding: 12px;
    margin: 10px 0 15px 0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

html.nettcars input[name*="recaptchatoken"],
html.nettcars input[id*="recaptchatoken"],
html.nettcars input[name*="g-recaptcha-response"] {
    opacity: 0 !important;
    height: 1px !important;
    width: 1px !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -1 !important;
}

html.nettcars tr:has(input[name*="recaptchatoken"]),
html.nettcars tr:has(input[id*="recaptchatoken"]) {
    display: none !important;
}

/* =============================================
   13. PÁGINAS LEGALES Y ERROR
   ============================================= */
html.nettcars .nc-legal-hero {
    height: var(--hero-legal-height);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 50%, rgba(255,255,255,0.1) 100%),
        url('/FondocontactoLambo.png');
    background-color: var(--nett-blue);
}

html.nettcars .nc-legal-hero .nc-legal-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

html.nettcars .nc-legal-hero h1 {
    color: var(--text-white);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    margin: 0;
}

html.nettcars .nc-legal-content {
    background: var(--bg-white);
    padding: 60px 0;
}

html.nettcars .nc-legal-content .container {
    max-width: 900px;
}

html.nettcars .nc-legal-content h2 {
    color: var(--nett-blue);
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

html.nettcars .nc-legal-content h3 {
    color: var(--nett-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

html.nettcars .nc-legal-content p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

html.nettcars .nc-legal-content ul,
html.nettcars .nc-legal-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

html.nettcars .nc-legal-content li {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

html.nettcars .nc-legal-content strong {
    color: var(--nett-blue);
    font-weight: 700;
}

html.nettcars .nc-legal-content a {
    color: var(--nett-accent);
    text-decoration: underline;
    font-weight: 600;
}

html.nettcars .nc-legal-content a:hover {
    color: var(--nett-accent-hover);
}

/* Página de error 404 */
html.nettcars .nc-error-content {
    background: var(--bg-light);
    padding: 80px 0;
    text-align: center;
    min-height: 50vh;
}

html.nettcars .nc-error-content .nc-error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--nett-blue);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 rgba(24, 27, 69, 0.1);
}

html.nettcars .nc-error-content h1 {
    color: var(--nett-blue);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

html.nettcars .nc-error-content p {
    color: var(--text-body);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   14. BOTONES GENERALES
   ============================================= */
html.nettcars .nc-btn-pill {
    background-color: var(--nett-accent) !important;
    color: var(--text-white) !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 16px 45px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none !important;
    transition: all var(--transition-normal);
    cursor: pointer;
}

html.nettcars .nc-btn-pill:hover {
    background-color: var(--nett-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

html.nettcars .btn-outline-primary {
    border: 2px solid var(--nett-blue) !important;
    color: var(--nett-blue) !important;
    background: transparent !important;
    border-radius: var(--radius-pill) !important;
    padding: 12px 30px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

html.nettcars .btn-outline-primary:hover {
    background: var(--nett-blue) !important;
    color: var(--text-white) !important;
}

/* =============================================
   15. ALERTAS Y MENSAJES
   ============================================= */
html.nettcars .alert {
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: none;
    box-shadow: var(--shadow-sm);
}

html.nettcars .alert-success {
    background-color: #f0fdf4 !important;
    color: #14532d !important;
    border: 1px solid #4ade80 !important;
    text-align: center !important;
    padding: 40px 30px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* Icono de check grande */
html.nettcars .alert-success::before {
    content: "✓";
    display: block;
    font-size: 4rem;
    color: #22c55e;
    margin: 0 auto 20px auto;
    line-height: 1;
}

/* Ocultar botón X en success */
html.nettcars .alert-success .close {
    display: none !important;
}

/* Otros tipos de alerta (conservar X) */
html.nettcars .alert-danger .close,
html.nettcars .alert-warning .close,
html.nettcars .alert-info .close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    font-size: 1.5rem;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
}

html.nettcars .alert .close:hover { 
    opacity: 1; 
}

/* =============================================
   16. ACCESO CLIENTES
   ============================================= */
html.nettcars .nc-center-col {
    float: none !important;
    margin: 0 auto !important;
    text-align: center;
}

html.nettcars .nc-team-hero.nc-access-hero-img {
    /* 1. Ruta corregida con '/' al inicio */
    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.4) 100%),
        url('areaprivada.png') !important;
    
    /* 2. Propiedades de ajuste */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    
    /* 3. Asegurar altura (por si acaso la clase base falla) */
    min-height: 450px; 
    width: 100%;
    position: relative;
    display: block;
}

html.nettcars .nc-access-intro {
    padding: 60px 0 40px;
    background: #fff;
}

html.nettcars .nc-access-title {
    color: #181B45;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

html.nettcars .nc-access-lead {
    font-size: 1.25rem;
    color: #444;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

html.nettcars .nc-access-section {
    margin: 0;
    padding: 60px 0;
    background: linear-gradient(180deg, #0f204a 0%, #0b1633 100%);
    border-top: 4px solid #fff;
}

html.nettcars .nc-access-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

html.nettcars .nc-access-card-title {
    color: var(--nett-blue);
    margin-bottom: 26px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.16);
    padding-bottom: 14px;
    font-weight: 800;
}

html.nettcars .nc-form-label {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    text-align: left;
    display: block;
    margin-bottom: 8px;
}

html.nettcars .nc-form-control {
    background: rgba(255,255,255,0.92);
    color: #101426;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

html.nettcars .nc-form-control::placeholder {
    color: rgba(16,20,38,0.55);
}

html.nettcars .nc-form-control:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(197,21,21,0.18);
    border-color: rgba(197,21,21,0.55);
}

html.nettcars .nc-access-btn {
    margin-top: 18px;
}

html.nettcars .nc-access-alert {
    border-radius: var(--radius-md);
    margin-top: 14px !important;
}

/* =============================================
   17. POLÍTICA PRIVACIDAD/COOKIES
   ============================================= */
html.nettcars .nc-policy-header {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 160px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(24,27,69,1) 0%, rgba(42,48,117,1) 55%, rgba(10,10,10,1) 100%);
}

html.nettcars .nc-policy-header h1 {
    margin: 0;
    color: var(--text-white);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    text-shadow: 0 4px 20px rgba(0,0,0,.55);
}

html.nettcars .nc-policy-divider {
    width: 90px;
    height: 4px;
    border-radius: 10px;
    margin: 18px auto 0;
    background: var(--nett-accent);
    box-shadow: 0 10px 24px rgba(197,21,21,.25);
}

html.nettcars .nc-policy-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 46px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,.06);
    margin-top: var(--card-overlap-md);
}

html.nettcars .nc-policy-card .nc-policy-title {
    color: var(--nett-blue);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 1.25rem;
    margin: 10px 0 14px;
}

html.nettcars .nc-policy-card h3 {
    color: var(--nett-blue);
    font-weight: 800;
    font-size: 1.05rem;
    margin: 24px 0 10px;
}

html.nettcars .nc-policy-card p {
    color: var(--text-body);
    font-size: 1.02rem;
    line-height: 1.85;
    margin: 0 0 14px;
}

html.nettcars .nc-policy-card ul {
    margin: 10px 0 18px;
    padding-left: 22px;
}

html.nettcars .nc-policy-card li {
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 10px;
}

html.nettcars .nc-separator {
    border: 0;
    height: 1px;
    background: rgba(24,27,69,.10);
    margin: 28px 0;
}

html.nettcars .nc-policy-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(24,27,69,.10);
    color: var(--text-light);
    text-align: center;
    font-size: .98rem;
}

/* =============================================
   18. PÁGINA PROPUESTA
   ============================================= */
html.nettcars .nc-proposal-hero-img {
    background-image:
        linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 55%, rgba(255,255,255,0.10) 100%),
        url('/FondocontactoLambo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

html.nettcars .nc-proposal-card {
    background: var(--bg-white);
    border-radius: 22px;
    padding: 52px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,.06);
    margin: var(--card-overlap-lg) auto 0;
    max-width: 1100px;
    position: relative;
}

html.nettcars .nc-prop-header {
    margin: 10px 0 26px;
    text-align: left;
}

html.nettcars .nc-prop-subtitle {
    margin: 10px 0 0;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

html.nettcars .nc-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px 0 10px;
    color: var(--text-light);
}

html.nettcars .nc-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(24,27,69,.15);
    border-top-color: var(--nett-accent);
    animation: ncSpin 0.9s linear infinite;
}

html.nettcars .nc-alert-box {
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

html.nettcars .nc-alert-box h2 {
    margin: 0 0 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 1.2rem;
}

html.nettcars .nc-alert-box p { 
    margin: 0; 
    line-height: 1.7; 
}

html.nettcars .nc-alert-box.nc-error {
    background: rgba(197,21,21,.08);
    border-color: rgba(197,21,21,.18);
    color: #5b0b0b;
}

html.nettcars .nc-alert-box.nc-warning {
    background: rgba(255,193,7,.12);
    border-color: rgba(255,193,7,.25);
    color: #5a4300;
}

/* Galería */
html.nettcars .nc-gallery-container {
    margin: 26px 0 34px;
}

html.nettcars .nc-gallery-main {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,.06);
}

html.nettcars .nc-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #f1f3f5;
}

html.nettcars .nc-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

html.nettcars .nc-gallery-thumbs img {
    width: 92px;
    height: 62px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid rgba(24,27,69,.12);
    cursor: pointer;
    opacity: .9;
    transition: transform var(--transition-fast), opacity var(--transition-fast), border-color var(--transition-fast);
}

html.nettcars .nc-gallery-thumbs img:hover {
    transform: translateY(-2px);
    opacity: 1;
    border-color: rgba(24,27,69,.25);
}

html.nettcars .nc-gallery-thumbs img.active {
    border-color: var(--nett-accent);
    box-shadow: 0 6px 18px rgba(197,21,21,.18);
    opacity: 1;
}

/* Secciones de contenido */
html.nettcars .nc-section-box {
    background: linear-gradient(180deg, rgba(24,27,69,.02), rgba(255,255,255,1));
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 26px rgba(0,0,0,.05);
    margin: 18px 0;
}

html.nettcars .nc-section-box h3 {
    margin: 0 0 16px;
    color: var(--nett-blue);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 1.05rem;
}

/* Specs grid */
html.nettcars .nc-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

html.nettcars .nc-spec-item {
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html.nettcars .nc-spec-item strong {
    color: rgba(24,27,69,.85);
    font-size: .85rem;
    letter-spacing: .4px;
    text-transform: uppercase;
}

html.nettcars .nc-spec-item span {
    color: var(--text-dark);
    font-weight: 700;
}

/* Features */
html.nettcars .nc-features-list {
    margin: 0;
    padding-left: 18px;
}

html.nettcars .nc-features-list li {
    margin-bottom: 8px;
    color: var(--text-body);
    line-height: 1.7;
}

/* Resumen económico */
html.nettcars .nc-price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

html.nettcars .nc-price-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(24,27,69,.08);
}

html.nettcars .nc-price-list li:last-child { 
    border-bottom: none; 
}

html.nettcars .nc-price-list span {
    color: var(--text-body);
    line-height: 1.4;
}

html.nettcars .nc-price-col {
    text-align: right;
}

html.nettcars .nc-price-col strong {
    color: var(--nett-blue);
    font-weight: 900;
    font-size: 1.05rem;
}

html.nettcars .nc-price-col small {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
}

html.nettcars .nc-price-negative {
    color: var(--nett-success) !important;
    font-weight: 900;
}

html.nettcars .nc-note-inline {
    display: inline-block;
    margin-left: 10px;
    color: var(--text-light);
    font-size: .9rem;
}

html.nettcars .nc-total-row {
    background: rgba(24,27,69,.04);
    border-radius: 14px;
    padding: 16px 14px;
    margin-top: 10px;
}

html.nettcars .nc-total-row strong {
    font-size: 1.25rem;
    color: var(--nett-blue);
}

html.nettcars .nc-legal-footer {
    margin: 14px 0 0;
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.6;
}

/* Botones de acción */
html.nettcars .nc-action-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 26px 0 10px;
    flex-wrap: wrap;
}

html.nettcars .nc-btn-accept,
html.nettcars .nc-btn-reject {
    border-radius: var(--radius-pill);
    padding: 14px 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
    border: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

html.nettcars .nc-btn-accept {
    background: var(--nett-success);
    color: var(--text-white);
}

html.nettcars .nc-btn-accept:hover {
    background: var(--nett-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,210,168,.3);
}

html.nettcars .nc-btn-reject {
    background: rgba(24,27,69,.08);
    color: var(--nett-blue);
    border: 1px solid rgba(24,27,69,.18);
}

html.nettcars .nc-btn-reject:hover {
    background: rgba(24,27,69,.12);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

html.nettcars .nc-btn-accept:disabled,
html.nettcars .nc-btn-reject:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* Agente */
html.nettcars .nc-agent-section {
    margin-top: 24px;
}

html.nettcars .nc-agent-section h3 {
    margin: 0 0 14px;
    color: var(--nett-blue);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 1.05rem;
}

html.nettcars .nc-agent-card {
    display: flex;
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.95);
    padding: 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,.05);
}

html.nettcars .nc-agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24,27,69,.08);
    color: var(--nett-blue);
    font-size: 22px;
    flex: 0 0 auto;
}

html.nettcars .nc-agent-info h4 {
    margin: 0 0 6px;
    font-weight: 900;
    color: var(--nett-blue);
}

html.nettcars .nc-agent-contact {
    margin: 0;
    color: var(--text-body);
}

html.nettcars .nc-agent-contact a {
    color: var(--nett-accent);
    font-weight: 700;
    text-decoration: underline;
}

html.nettcars .nc-agent-contact a:hover {
    color: var(--nett-accent-hover);
}

/* Mensajes finales */
html.nettcars .nc-success-message,
html.nettcars .nc-info-message {
    margin-top: 18px;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

html.nettcars .nc-success-message {
    background: rgba(0,210,168,.10);
    border-color: rgba(0,210,168,.20);
}

html.nettcars .nc-info-message {
    background: rgba(24,27,69,.06);
    border-color: rgba(24,27,69,.12);
}

html.nettcars .nc-success-message h3,
html.nettcars .nc-info-message h3 {
    margin: 10px 0 8px;
    font-weight: 900;
    color: var(--nett-blue);
    text-transform: uppercase;
    letter-spacing: .6px;
}

html.nettcars .nc-success-message p,
html.nettcars .nc-info-message p {
    margin: 0;
    color: var(--text-body);
    line-height: 1.7;
}

/* =============================================
   19. RESPONSIVE - TABLET
   ============================================= */
@media (max-width: 1199px) {
    html.nettcars .nc-steps__grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    
    html.nettcars .nc-hero-content h1 { 
        font-size: 2.5rem; 
    }
    
    html.nettcars .nc-partners__grid { 
        gap: 30px; 
    }
    
    html.nettcars .nc-partners__title { 
        font-size: 1.8rem; 
    }
}

@media (max-width: 992px) {
    html.nettcars .nc-partners__grid { 
        grid-template-columns: 1fr; 
        gap: var(--grid-gap-md);
    }
    
    html.nettcars .nc-partners__card { 
        min-height: 150px; 
    }
    
    html.nettcars .nc-partners__logos { 
        min-height: auto; 
        gap: var(--grid-gap-md);
    }
    
    html.nettcars .nc-partners__logos img { 
        height: 44px; 
    }
    
    html.nettcars .nc-partners { 
        padding: 50px 0; 
    }
    
    html.nettcars .nc-partners__title { 
        font-size: 1.6rem; 
    }
    
    html.nettcars .nc-proposal-card { 
        padding: 34px 22px; 
        margin-top: var(--card-overlap-md); 
    }
    
    html.nettcars .nc-specs-grid { 
        grid-template-columns: 1fr; 
    }
    
    html.nettcars .nc-price-list li { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    
    html.nettcars .nc-price-col { 
        text-align: left; 
    }
    
    html.nettcars .nc-gallery-thumbs img { 
        width: 82px; 
        height: 56px; 
    }
}

/* =============================================
   20. RESPONSIVE - MÓVIL (MENÚ ARRIBA + GRANDE)
   ============================================= */
@media (max-width: 991px) {
    /* 1. FONDO Y CONTENEDOR A PANTALLA COMPLETA */
    html.nettcars .navbar.nett-header .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* Soporte nativo para móviles (evita que la barra del navegador tape cosas) */
        background-color: #ffffff !important; 
        
        display: flex !important;
        flex-direction: column !important;
        
        /* CAMBIO: Los elementos caen de forma natural uno debajo de otro */
        justify-content: flex-start !important; 
        align-items: center !important;
        
        padding: 100px 20px 40px 20px !important; /* Espacio arriba para no chocar con el logo y la X */
        
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-slow);
        z-index: 1050;
        overflow-y: auto !important; 
    }

    html.nettcars .navbar.nett-header .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
    }

    /* 2. TRAER LOGO Y FIJAR LA X AL FRENTE */
    html.nettcars .navbar.nett-header .navbar-brand {
        position: relative !important;
        z-index: 1060 !important;
    }
    
    /* CAMBIO: Anclamos la hamburguesa/X a la esquina superior derecha para que NUNCA se mueva */
    html.nettcars .navbar.nett-header .custom-navbar-toggler {
        position: absolute !important; 
        top: 25px !important;
        right: 20px !important;
        z-index: 1060 !important; 
    }

    html.nettcars .navbar.nett-header:has(.navbar-collapse.show) .brand-logo {
        filter: none !important;
    }

    /* 3. ENLACES DEL MENÚ */
    html.nettcars .navbar.nett-header .navbar-collapse nav,
    html.nettcars .navbar.nett-header .navbar-collapse ul {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    html.nettcars .navbar.nett-header .nav-item {
        width: 100% !important;
        border-bottom: 1px solid #eeeeee !important; 
    }

    html.nettcars .navbar.nett-header .nav-link,
    html.nettcars .navbar.nett-header.scrolled-mode .nav-link {
        font-size: 1.5rem !important; 
        font-weight: 800 !important;
        padding: 20px 0 !important;
        color: #181B45 !important; 
        text-align: center !important;
        display: block !important;
    }

    /* 4. BOTONES CTA JUSTO DEBAJO DE CONTACTO */
    html.nettcars .header-cta {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
        /* CAMBIO: Margen fijo desde el último enlace en lugar de empujarlos al fondo */
        margin-top: 35px !important; 
        padding-top: 0 !important;
    }

    html.nettcars .navbar.nett-header .btn-cta-red,
    html.nettcars .navbar.nett-header .btn-cta-white {
        width: 100% !important;
        text-align: center !important;
        padding: 16px 20px !important;
        font-size: 1.1rem !important;
        display: block !important;
    }

    /* 5. MAGIA PARA LA 'X' AL ABRIR */
    html.nettcars .navbar.nett-header .navbar-toggler[aria-expanded="true"] i {
        color: #181B45 !important;
        font-size: 2rem !important; /* Hacemos la X más grande y visible */
    }
    
    html.nettcars .navbar.nett-header .navbar-toggler[aria-expanded="true"] i::before {
        content: "\f00d" !important; 
        font-family: "Font Awesome 6 Free" !important; /* Forzamos la fuente para que la X cargue seguro */
        font-weight: 900 !important;
    }
}

/* --- MÓVILES PEQUEÑOS (MANTENEMOS TU CÓDIGO ACTUAL) --- */
@media (max-width: 767px) {
    html.nettcars .nc-steps__grid { 
        grid-template-columns: 1fr; 
        gap: var(--grid-gap-sm); 
    }
    html.nettcars .nc-step-card {
        min-height: auto;
        padding: 25px 20px;
    }
    html.nettcars .nc-step__icon {
        width: 50px; height: 50px; font-size: 1.3rem;
    }
    html.nettcars .nc-glass-chip {
        font-size: 0.85rem; padding: 10px 18px;
    }
    html.nettcars .nc-hero-content h1 { font-size: 1.8rem; }
    html.nettcars .nc-hero-subtitle { font-size: 1.4rem !important; letter-spacing: 2px; }
    html.nettcars .nc-hero-cta .nc-btn-pill { width: 100%; padding: 16px 30px !important; font-size: 1rem !important; }
    html.nettcars .nc-team-hero { height: 350px; }
    html.nettcars .nc-legal-hero { height: 300px; }
    html.nettcars .nc-section-block { padding: 50px 0; }
    html.nettcars .nc-title-main { font-size: 1.8rem; }
    html.nettcars .nc-entity-form-wrapper { padding: 25px 15px; }
    html.nettcars .nc-person-img { height: 220px; }
    
    html.nettcars #contact-recaptcha-wrapper,
    html.nettcars #cv-recaptcha-wrapper { padding: 15px !important; }
    html.nettcars #g-recaptcha-contact,
    html.nettcars #g-recaptcha-cv { transform: scale(0.9); }
    
    html.nettcars .nc-partners { padding: 40px 0; }
    html.nettcars .nc-partners__head { margin-bottom: 35px; }
    html.nettcars .nc-partners__title { font-size: 1.4rem; }
    html.nettcars .nc-partners__card { padding: 25px 20px; }
    html.nettcars .nc-partners__label { font-size: 1rem; margin-bottom: 20px; }
    
    html.nettcars .nc-error-content .nc-error-code { font-size: 5rem; }
    html.nettcars .nc-error-content h1 { font-size: 1.8rem; }
    html.nettcars .nc-policy-header { padding: 130px 0 50px; }
    html.nettcars .nc-policy-card { padding: 28px 18px; margin-top: -28px; }
}

@media (max-width: 480px) {
    html.nettcars .nc-team-hero { height: 280px; }
    html.nettcars .nc-legal-hero { height: 250px; }
    html.nettcars .nc-hero-content h1 { font-size: 1.5rem; }
    html.nettcars .nc-step-card { padding: 20px 15px; }
    html.nettcars .nc-step-card h4 { font-size: 1.1rem; }
    html.nettcars .nc-step-card p { font-size: 0.9rem; }
    html.nettcars .nc-entity-form-wrapper { padding: 20px 15px; }
    html.nettcars .nc-partners__logos img { height: 38px; }
}

/* =============================================
   21. ANIMACIONES
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ncSpin {
    to { 
        transform: rotate(360deg);
    }
}

html.nettcars .nc-animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* =============================================
   22. PRINT & UTILIDADES FINALES
   ============================================= */
@media print {
    html.nettcars .navbar.nett-header,
    html.nettcars .nc-hero-video,
    html.nettcars .nc-team-hero-wrapper,
    html.nettcars .nc-legal-hero {
        display: none !important;
    }
}

/* Asegurar contenedor máximo */
html.nettcars .container-fluid {
    max-width: 1400px;
}

/* =============================================
   23. FOOTER NETTCARS - CSS
   ============================================= */

/* Variables de Color */
:root {
    --nett-blue-dark: #181B45;
    --nett-accent: #b81414;
    --nett-white: #ffffff;
    --nett-bg-footer: #ffffff;
    --nett-text-main: #181B45;
}

/* Estilo general del Footer */
.nettcar-footer {
    background-color: var(--nett-bg-footer);
    color: var(--nett-text-main);
    padding: 60px 20px 30px 20px;
    font-family: Arial, sans-serif;
    border-top: 1px solid #eaeaea;
}

/* Contenedor principal para las 4 columnas */
.footer-columns {
    display: grid;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeaea; 
}

/* Estructura de columnas (Desktop) */
@media (min-width: 1024px) {
    .footer-columns {
        grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
    }
}

/* Estructura de columnas (Tablet y Mobile) */
@media (max-width: 1023px) {
     .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* Estilo de los títulos de columna */
.footer-columns h4 {
    color: var(--nett-text-main);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === COLUMNA 1: NETTCAR === */
.col-nettcar p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--nett-text-main);
    font-size: 1rem;
}

.col-nettcar strong {
    color: var(--nett-text-main);
    font-weight: 700;
}

/* Enlaces sociales */
.social-icons-wrapper {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.social-icons-wrapper a {
    color: var(--nett-text-main);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-icons-wrapper a:hover {
    color: var(--nett-accent);
    transform: translateY(-3px);
}

/* === COLUMNA 2: ENLACES LEGALES === */
.col-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.col-legal a {
    color: var(--nett-text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
    transition: color 0.3s, padding-left 0.3s;
}

.col-legal a:hover {
    color: var(--nett-accent);
    padding-left: 5px;
    font-weight: 600;
}

/* === COLUMNA 3: OPINIONES DE CLIENTES === */
.col-opinions {
    min-height: 300px;
}

/* Contenedor del badge de Google */
.google-reviews-container {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.google-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.google-logo {
    width: 100px;
    height: auto;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #fbbc05;
    font-size: 1.8rem;
    letter-spacing: 3px;
}

.rating-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--nett-text-main);
}

.reviews-count {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
}

/* Estilos para el enlace de ver más reseñas */
.view-all-reviews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 0.95rem;
    color: var(--nett-white);
    background-color: var(--nett-blue-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.view-all-reviews:hover {
    background-color: var(--nett-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 20, 20, 0.3);
}

/* CSS adicional para las reviews dinámicas */
#reviews-list {
    max-height: 400px;
    overflow-y: auto;
}

#reviews-list::-webkit-scrollbar {
    width: 6px;
}

#reviews-list::-webkit-scrollbar-thumb {
    background: #181B45;
    border-radius: 3px;
}

/* === COLUMNA 4: NUESTRA UBICACIÓN === */
.col-location .city {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--nett-text-main);
    display: block;
}

.col-location .address {
    color: var(--nett-text-main);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.map-wrapper {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* === SECCIÓN DE MÉTODOS DE PAGO === */
.payment-methods {
    text-align: center;
    padding: 30px 0 10px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.payment-methods p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.payment-logos-container img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-logos-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* === DERECHOS DE AUTOR === */
.copyright {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
    padding-top: 20px;
    color: #666;
    border-top: 1px solid #eaeaea;
}

.copyright a {
    color: var(--nett-text-main);
    text-decoration: none;
    font-weight: 600;
}

.copyright a:hover {
    color: var(--nett-accent);
}

/* Botón de scroll */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--nett-blue-dark);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(24, 27, 69, 0.3);
    transition: all 0.3s;
    border: none;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--nett-accent);
    transform: translateY(-5px);
}
@media (max-width: 640px) {
    .google-reviews-container {
        padding: 15px;
    }
    
    #reviews-list {
        max-height: 300px;
    }
}
/* =============================================
   CONTACTO - CORRECCIONES FINALES
   ============================================= */

/* Textarea "Otros comentarios" más grande */
html.nettcars #contact-section-wrapper textarea[id*="comentarios"],
html.nettcars #contact-section-wrapper textarea[id*="nc_mensajedellead"],
html.nettcars #contact-section-wrapper textarea[name*="comentarios"],
html.nettcars #contact-section-wrapper textarea[name*="mensaje"] {
    min-height: 150px !important;
    resize: vertical;
}

/* OCULTAR TODO tras mensaje de éxito */
html.nettcars #contact-section-wrapper:has(.alert-success) #contact-recaptcha-wrapper,
html.nettcars #contact-section-wrapper:has(.alert-success) #captcha-warning-msg,
html.nettcars #contact-section-wrapper:has(.alert-success) .consent-wrapper,
html.nettcars #contact-section-wrapper:has(.alert-success) form,
html.nettcars #contact-section-wrapper:has(.alert-success) .entity-form {
    display: none !important;
}

/* ELIMINAR círculo rojo/rosa con X */
html.nettcars #contact-section-wrapper .alert-success + div,
html.nettcars #contact-section-wrapper .alert-success ~ div:not(.container):not(.row) {
    display: none !important;
}

html.nettcars #contact-section-wrapper:has(.alert-success) div[style*="rgb(239, 131, 131)"],
html.nettcars #contact-section-wrapper:has(.alert-success) div[style*="#ef8383"],
html.nettcars #contact-section-wrapper:has(.alert-success) div[style*="background-color: rgb(239, 131, 131)"] {
    display: none !important;
}

/* Eliminar cualquier div con border-radius y background después del éxito */
html.nettcars #contact-section-wrapper .alert-success ~ div[style*="border-radius"][style*="background"] {
    display: none !important;
}
/* =============================================
   FORZAR BOTONES ROJOS - OVERRIDE
   ============================================= */
html.nettcars .nc-btn-pill,
html.nettcars a.nc-btn-pill,
html.nettcars .btn.nc-btn-pill,
html.nettcars .nc-hero-cta .nc-btn-pill,
html.nettcars .nc-btn-hero-cta {
    background-color: #c51515 !important;
    color: #ffffff !important;
}

html.nettcars .nc-btn-pill:hover,
html.nettcars a.nc-btn-pill:hover,
html.nettcars .btn.nc-btn-pill:hover,
html.nettcars .nc-hero-cta .nc-btn-pill:hover,
html.nettcars .nc-btn-hero-cta:hover {
    background-color: #a00f0f !important;
    color: #ffffff !important;
}
/* =============================================
   FORZAR BOTÓN HERO ROJO - MÁXIMA PRIORIDAD
   ============================================= */
html.nettcars .nc-hero-cta a.nc-btn-pill,
html.nettcars .nc-hero-cta a.btn.nc-btn-pill,
html.nettcars .nc-hero-cta .nc-btn-hero-cta,
html.nettcars a.nc-btn-hero-cta.nc-btn-pill {
    background-color: #c51515 !important;
    color: #ffffff !important;
    border: none !important;
}

html.nettcars .nc-hero-cta a.nc-btn-pill:hover,
html.nettcars .nc-hero-cta a.btn.nc-btn-pill:hover,
html.nettcars .nc-hero-cta .nc-btn-hero-cta:hover,
html.nettcars a.nc-btn-hero-cta.nc-btn-pill:hover {
    background-color: #a00f0f !important;
    color: #ffffff !important;
}
/* =============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

/* Responsive - más pequeño en móvil */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================
   CSS LANDING PAGES - NETTCARS (Mobile First)
   ========================================= */

/* Ajustes base para el Hero */
.hero-audi {
    background-size: cover;
    background-position: center center;
    position: relative;
}

/* =========================================
   MEDIA QUERY: Teléfonos móviles (hasta 768px)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Hero: Más alto para dar respiro visual y textos más pequeños */
    .hero-audi {
        min-height: 70vh !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .hero-audi h1 {
        font-size: 2.2rem !important; /* Evita que el título ocupe toda la pantalla */
        line-height: 1.2;
    }
    
    .hero-audi .lead {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* 2. Botones de llamada a la acción: Ancho completo (Full width) */
    /* Esto es vital en móvil para facilitar el toque con el pulgar */
    .hero-audi .btn, 
    .cta-final .btn {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1.1rem !important;
        margin-bottom: 15px;
        white-space: normal; /* Permite que el texto del botón salte de línea si es largo */
    }
    
    /* 3. Ajuste de imágenes en las tarjetas (Escaparate) */
    .escaparate-audi img {
        height: 220px !important; /* Altura controlada para que no sean gigantes */
    }

    /* 4. Márgenes en la sección de Autoridad */
    .por-que-audi .col-md-4 {
        margin-bottom: 2.5rem !important; /* Más espacio entre los puntos de autoridad */
    }
}
.contenedor-desplegable {
    max-height: 250px; /* Ajusta este valor para que quede justo por encima de los botones */
    overflow-y: auto;  /* Añade el scroll vertical solo si es necesario */
    
    /* Opcional: Personalizar el diseño del scrollbar para que se vea más moderno */
    scrollbar-width: thin;
}

/* Opcional: Estilos para el scroll en navegadores basados en WebKit (Chrome, Safari, Edge) */
.contenedor-desplegable::-webkit-scrollbar {
    width: 6px;
}
.contenedor-desplegable::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.descripcion-vehiculo {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9; /* Un fondo suave para diferenciarlo */
    border-radius: 8px;
    line-height: 1.5;
}
/* Contenedor general para darle orden a la tarjeta/vista */
.contenedor-vehiculo {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 600px; /* Ajusta según el ancho de tu app o página */
    margin: 0 auto;
    color: #333;
}

/* 1. ESTILOS DEL DESPLEGABLE CON SCROLL */
.detalles-desplegable {
    max-height: 180px; /* <-- ALTURA MÁXIMA: Esto fuerza el scroll si hay muchos datos */
    overflow-y: auto;  /* <-- SCROLL: Solo aparece si el contenido supera los 180px */
    
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Diseño más fino para la barra de scroll (WebKit - Chrome/Edge/Safari) */
.detalles-desplegable::-webkit-scrollbar {
    width: 6px;
}
.detalles-desplegable::-webkit-scrollbar-thumb {
    background-color: #bcbcbc;
    border-radius: 4px;
}

.detalles-desplegable h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.detalles-desplegable ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.detalles-desplegable li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* ESTILOS DE LOS BOTONES (Para contexto) */
.botones-accion {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.botones-accion button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primario {
    background-color: #0078d4; /* Color azul estilo Microsoft/Power Apps */
    color: white;
    flex: 1;
}

.btn-secundario {
    background-color: #f3f2f1;
    color: #323130;
}

/* 2. ESTILOS DE LA NUEVA SECCIÓN DE DESCRIPCIÓN */
.descripcion-completa {
    background-color: #f9f9f9;
    border-left: 4px solid #0078d4; /* Borde de color para resaltar la sección */
    padding: 15px;
    border-radius: 4px;
}

.descripcion-completa h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.texto-descripcion {
    margin: 0;
    line-height: 1.6;
    /* MUY IMPORTANTE: Esto respeta los saltos de línea introducidos en el campo "Multiple lines of text" de Dataverse */
    white-space: pre-wrap; 
    color: #555;
}
/* Forzar que el pop-up esté por encima del menú principal */
.modal-backdrop { z-index: 10400 !important; }
.modal { z-index: 10500 !important; }

/* Para móvil: Darle un pequeño margen arriba por si el menú ocupa espacio */
@media (max-width: 768px) {
    .modal-dialog {
        margin-top: 70px; /* Ajusta este valor según la altura de tu menú */
    }
}
/* CONTENEDOR DE LAS TARJETAS */
  @media (max-width: 768px) {
    .row-noticias-scroll {
      display: flex !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 20px;
      gap: 15px;
      scrollbar-width: none; /* Oculta scrollbar en Firefox */
    }
    .row-noticias-scroll::-webkit-scrollbar {
      display: none; /* Oculta scrollbar en Chrome/Safari */
    }
    .col-card-movil {
      flex: 0 0 85% !important; /* La tarjeta ocupa el 85% para que se vea la siguiente asomando */
      max-width: 85% !important;
    }
  }

  .card-publicacion {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0,0,0,0.06);
      transition: transform 0.3s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
  }
  .card-publicacion:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  }
  .etiqueta-tipo {
      position: absolute;
      top: 15px;
      left: 15px;
      background-color: #00102a;
      color: white;
      padding: 6px 16px;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: bold;
      z-index: 2;
  }
