/* CortaCamino public.css — built 2026-12-02T03:41:52Z */
/* =============================================================================
   COLOR PALETTE & CSS VARIABLES
   ============================================================================= */
:root {
    /* Primary Colors */
    --cc-primary-dark: #1a365d;
    --cc-primary-main: #2b6cb0;
    --cc-primary-light: #3182ce;
    
    /* Secondary Colors */
    --cc-accent-yellow: #f6d55c;
    --cc-accent-orange: #ed8936;
    /* Reason: el naranja ya distingue a las acciones sobre TAGS (correccion de
       tags, Archivo X) en el Historial. La telemetria necesitaba su propio
       color y el azul no servia: la columna Estado ya usa --cc-info (azul)
       para "Pendiente" y quedaban dos insignias azules en la misma fila. */
    --cc-accent-purple: #6b46c1;
    
    /* Neutral Colors */
    --cc-gray-50: #f7fafc;
    --cc-gray-100: #edf2f7;
    --cc-gray-200: #e2e8f0;
    --cc-gray-300: #cbd5e0;
    --cc-gray-400: #a0aec0;
    --cc-gray-500: #9ca3af;
    /* Reason: #718096 daba 4.0:1 sobre blanco y 3.8:1 sobre gray-50, abajo de
       WCAG AA; es el gris de todo el texto secundario. */
    --cc-gray-600: #5f6b7d;
    --cc-gray-700: #4a5568;
    --cc-gray-800: #2d3748;
    --cc-gray-900: #1a202c;
    
    /* Semantic Colors */
    --cc-success: #38a169;
    --cc-success-light: #9ae6b4;
    --cc-success-dark: #22543d;
    --cc-success-main: #38a169;
    --cc-warning: #d69e2e;
    --cc-warning-light: #faf089;
    --cc-warning-dark: #744210;
    --cc-warning-main: #d69e2e;
    --cc-danger: #e53e3e;
    --cc-danger-light: #fed7d7;
    --cc-danger-dark: #742a2a;
    --cc-danger-main: #e53e3e;
    --cc-info: var(--cc-primary-main);
    --cc-info-light: #bee3f8;
    --cc-info-dark: #2a4365;
    --cc-info-main: var(--cc-primary-main);
    
    /* Calm Chart Palette (cool/neutral base) */
    --cc-ok: #4a5568;                    /* dark gray for "Sin error" (neutral baseline) */
    --cc-ok-18: rgba(74, 85, 104, 0.18);
    --cc-ok-text: #2d3748;               /* dark text for contrast */
    
    --cc-minor: #d69e2e;                 /* light yellow for "Tarifa incorrecta" (warning) */
    --cc-minor-22: rgba(214, 158, 46, 0.22);
    --cc-minor-text: #744210;            /* dark text for contrast */
    
    --cc-unknown: #ed8936;               /* burnt orange for "No reconocido" (identity issue) */
    --cc-unknown-22: rgba(237, 137, 54, 0.22);
    --cc-unknown-text: #744210;          /* dark text for contrast */
    
    --cc-critical: #c85151;              /* muted red for "Duplicado" (critical only) */
    --cc-critical-30: rgba(200, 81, 81, 0.30);
    --cc-critical-text: #6d2a2a;         /* dark text for contrast */

    /* Reason: lo que marco el CLIENTE con sus reglas, contra lo que detectamos
       nosotros. Es una distincion de ORIGEN, no de gravedad, asi que necesita
       un color propio y no un tono mas de la escala roja/naranja/amarilla.
       Morado porque es el unico libre: azul es lo nuestro y el color de la
       marca, naranja ya distingue acciones sobre tags, amarillo es "tarifa
       incorrecta", rojo es "duplicado" y verde es exito. Gris oscuro NO sirve
       aunque parezca lo natural: es exactamente --cc-ok, el color de "Sin
       error", y un cruce marcado por una regla vive en error_type = 0. Pintarlo
       gris volveria a decir en color lo que ya costo trabajo dejar de decir en
       texto. */
    --cc-regla: #6b46c1;
    --cc-regla-22: rgba(107, 70, 193, 0.22);
    --cc-regla-text: #44337a;
    --cc-regla-dark: #553c9a;
    
    /* Optional thin border to separate stacked segments */
    --cc-bar-stroke: rgba(0, 0, 0, 0.08);
    
    /* Shadows */
    --cc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --cc-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --cc-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --cc-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Gradients */
    --cc-gradient-primary: linear-gradient(135deg, var(--cc-primary-dark) 0%, var(--cc-primary-main) 100%);
    --cc-gradient-accent: linear-gradient(135deg, var(--cc-accent-orange) 0%, var(--cc-accent-yellow) 100%);
    
    /* Z-index Scale */
    --z-base: 1;
    --z-sticky: 100;            /* sticky headers, chips */
    --z-dropdown: 1020;         /* select/choices/popovers */
    --z-datepicker: 1030;
    --z-sidebar: 1040;          /* fixed sidebar */
    --z-modal: 1050;            /* modal dialog */
    --z-toast: 1080;            /* notifications */
    --z-overlay: 1100;          /* full-screen overlays/loaders */
} /* =============================================================================
   MINIMAL RESET & NORMALIZE
   ============================================================================= */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
figure, figcaption,
blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    text-rendering: optimizeSpeed;
}

/* Remove list styles on ul, ol elements */
ul, ol {
    list-style: none;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} /* =============================================================================
   GLOBAL OVERRIDES
   ============================================================================= */

/* Sticky footer: pin .cc-footer to viewport bottom on short pages (login, 404,
   500, empty states) so they don't show a band of empty space below the
   footer. Only public pages use core/base.html; dashboard uses a different
   base so this won't affect the dashboard layout. */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.cc-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
.cc-footer {
    flex-shrink: 0;
}

/* Opt-in vertical centering for short pages (login, errors). Fills at least
   the viewport (minus navbar) so the card lands at the visual center while
   the long footer drops below the fold on short content. The subtle tint
   gives the card contrast against an otherwise stark white surface. */
.cc-page-center {
    flex: 1;
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7fafc;
}

/* Login: the form card is the visual anchor, so the card alone is what gets
   centered in the viewport. The brand + tagline block is lifted out of the
   flow and hung above the card so its height can't push the card off center
   (which read as "floating text" with the card sitting low). */
.cc-login-stack {
    position: relative;
}
.cc-login-header {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 1.5rem);
}

/* Short viewports: not enough room above the card to hang the header, so put
   it back in the normal flow where it can't collide with the navbar. */
@media (max-height: 720px) {
    .cc-login-header {
        position: static;
        margin-bottom: 1.75rem;
    }
}

/* Login brand mark + tagline above the form card. */
.cc-login-brand {
    text-align: center;
    color: var(--cc-primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cc-login-brand .bi-truck {
    color: var(--cc-accent-yellow);
    margin-right: 0.5rem;
    font-size: 1.6rem;
    vertical-align: -0.1em;
}
.cc-login-tagline {
    text-align: center;
    color: var(--cc-gray-600, #4a5568);
    font-size: 1rem;
    max-width: 28rem;
    margin: 0 auto;
    line-height: 1.5;
}

/* Button overrides */
.btn-primary {
    background: var(--cc-gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--cc-shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--cc-primary-main) 0%, var(--cc-primary-light) 100%);
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-md);
}

.btn-warning {
    background: var(--cc-accent-yellow);
    border: none;
    color: var(--cc-gray-800);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--cc-shadow-sm);
}

.btn-warning:hover {
    background: var(--cc-accent-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-md);
}

.btn-dark {
    background: var(--cc-gray-800);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--cc-shadow-sm);
}

.btn-dark:hover {
    background: var(--cc-gray-700);
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-md);
}

/* Form controls */
.form-control, .form-select {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid var(--cc-gray-300);
    border-radius: 0.375rem;
    background-color: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--cc-primary-main);
    box-shadow: 0 0 0 0.2rem rgba(43, 108, 176, 0.25);
    outline: 0;
}

/* Button base styles */
.btn {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: fit-content;
}

/* Ensure filter container alignment */
.d-flex.align-items-end {
    align-items: flex-end !important;
}

/* Add spacing between button columns */
.col-md-1 + .col-md-1 {
    padding-left: 0.5rem;
}

/* Vehicle search toggle */
#recent-toggle:checked {
    background-color: var(--cc-primary-main) !important;
    border-color: var(--cc-primary-main) !important;
}

#recent-toggle {
    accent-color: var(--cc-primary-main);
}

.form-check-label[for="recent-toggle"] {
    color: var(--cc-primary-main);
    font-weight: 500;
}

/* Logout button styles (Override for dropdown) */
.logout-button {
    width: 100%;
    text-align: left;
    padding: 0.375rem 1rem;
    border: none !important;
    background: transparent !important;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: var(--bs-dropdown-link-hover-bg) !important;
    color: var(--bs-dropdown-link-hover-color);
}

/* Disabled button styles */
button[type="submit"]:disabled,
button[type="submit"].disabled,
.btn-primary:disabled,
.btn-primary.disabled,
.btn.btn-primary:disabled,
.btn.btn-primary.disabled,
button.btn.btn-primary:disabled,
button.btn.btn-primary.disabled,
.cc-shadow-hover:disabled,
.cc-shadow-hover.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #6c757d !important;
    background-color: #6c757d !important;
    background-image: none !important;
    border-color: #6c757d !important;
    color: #fff !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: var(--cc-shadow-sm) !important;
}

button[type="submit"]:disabled:hover,
button[type="submit"].disabled:hover,
.btn-primary:disabled:hover,
.btn-primary.disabled:hover,
.btn.btn-primary:disabled:hover,
.btn.btn-primary.disabled:hover,
button.btn.btn-primary:disabled:hover,
button.btn.btn-primary.disabled:hover,
.cc-shadow-hover:disabled:hover,
.cc-shadow-hover.disabled:hover {
    background: #6c757d !important;
    background-color: #6c757d !important;
    background-image: none !important;
    border-color: #6c757d !important;
    transform: none !important;
    box-shadow: var(--cc-shadow-sm) !important;
    opacity: 0.6 !important;
}

/* Tooltip styles for disabled buttons */
button[disabled][title],
.btn[disabled][title],
#downloadDuplicatesBtn[disabled][title] {
    position: relative;
}

button[disabled][title]:hover::after,
.btn[disabled][title]:hover::after,
#downloadDuplicatesBtn[disabled][title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

button[disabled][title]:hover::before,
.btn[disabled][title]:hover::before,
#downloadDuplicatesBtn[disabled][title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 0.25rem solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    margin-bottom: 0.25rem;
} /* =============================================================================
   UTILITIES
   ============================================================================= */

/* Text utilities */
.cc-text-accent {
    color: var(--cc-accent-yellow);
}

/* Background utilities */
.cc-bg-primary {
    background: var(--cc-gradient-primary);
}

.cc-bg-accent {
    background: var(--cc-gradient-accent);
}

/* Shadow utilities */
.cc-shadow-hover:hover {
    box-shadow: var(--cc-shadow-lg);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Spacing utilities */
.cc-login-spacing {
    margin-bottom: 2rem !important;
}

.cc-login-form-spacing {
    margin-bottom: 4rem !important;
}

/* Add more space below password field and login button */
.cc-login-spacing + .d-grid {
    margin-top: 1.5rem !important;
}

/* Additional home page section spacing improvements */
.cc-how-it-works .cc-section-title {
    margin-top: clamp(0.5rem, 1vw, 1rem) !important;
    margin-bottom: clamp(1.5rem, 2.5vw, 2rem) !important;
}

/* Better spacing for benefits section */
.cc-section:has(.cc-benefit-item) + .cc-cta-section {
    margin-top: clamp(0.5rem, 1vw, 1rem) !important;
}

/* Contact form section spacing - no gap with CTA */
#contact-form.cc-section {
    margin-top: 0 !important;
    padding-top: clamp(2rem, 3vw, 2.5rem) !important;
}

/* Specific home page section optimizations */
.cc-how-it-works {
    padding: clamp(1.5rem, 2.5vw, 2rem) 0 clamp(1rem, 1.5vw, 1.5rem) 0 !important;
}

/* CTA section should be compact */
.cc-cta-section {
    padding: clamp(1.5rem, 2.5vw, 2rem) 0 !important;
}

/* Dashboard header spacing improvements */
.cc-dashboard-content .cc-form-container .cc-form-title {
    margin-top: clamp(0.5rem, 1vw, 1rem) !important;
}

/* Better container responsive handling for all viewport sizes */
.container,
.container-fluid {
    padding-left: clamp(0.75rem, 2vw, 1.5rem);
    padding-right: clamp(0.75rem, 2vw, 1.5rem);
}

/* Navbar brand responsive font sizing */
.cc-navbar .navbar-brand {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
}

/* Home page spacing fixes */
.cc-hero + .cc-how-it-works {
    padding-top: clamp(2rem, 3vw, 2.5rem) !important;
}

.cc-how-it-works {
    padding-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

/* Better spacing between sections on home page - reduce excessive padding */
.cc-section + .cc-section {
    padding-top: clamp(1.5rem, 2.5vw, 2rem) !important;
}

/* Reduce space between benefits section and CTA */
.cc-section:has(.cc-benefit-item) {
    padding-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

/* Eliminate gap between mid-page CTA and contact form */
.cc-cta-section + .cc-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Specifically target the benefits section to reduce excessive whitespace */
.cc-section:has(.cc-benefit-item) {
    padding-top: clamp(1.5rem, 2.5vw, 2rem) !important;
    padding-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

/* Dashboard page spacing fixes */
.cc-dashboard-content {
    padding-top: clamp(1.5rem, 3vw, 2rem) !important;
}

.cc-dashboard-content .cc-section {
    padding-top: clamp(1.5rem, 3vw, 2rem) !important;
    padding-bottom: clamp(1.5rem, 3vw, 2rem) !important;
}

/* Add vertical spacing around form containers in dashboard pages */
.cc-dashboard-content .cc-form-container {
    margin-top: clamp(1.0rem, 2vw, 1.5rem);
    margin-bottom: clamp(1.0rem, 2vw, 1.5rem);
}

/* =============================================================================
   SCREEN READER UTILITY
   ============================================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
} /* =============================================================================
   SECTIONS
   ============================================================================= */
.cc-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.cc-section-light {
    background-color: var(--cc-gray-50) !important;
}

/* Only apply full height to dashboard content, not home page sections */
.cc-section-light.cc-dashboard-content {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh;
}

/* Reason: dashboard cards had clamp(2rem, 4vw, 3rem) top padding inherited
   from .cc-form-container — visually heavy at the very top of the page.
   Tighter top padding on dashboard pages only; full-page forms (login,
   public contact) keep their original generous proportions. */
.cc-dashboard-content .cc-form-container {
    padding-top: clamp(1rem, 2.5vw, 1.5rem);
}

/* Home page sections should be content-based height */
.cc-section-light:not(.cc-dashboard-content) {
    padding: clamp(2rem, 4vw, 3rem) 0 !important;
    margin: 0 !important;
}

.cc-section-accent {
    background: var(--cc-gradient-accent);
    color: var(--cc-gray-800);
}

.cc-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.cc-section-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--cc-gray-600);
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    max-width: clamp(300px, 80%, 600px);
    margin-left: auto;
    margin-right: auto;
} /* =============================================================================
   NAVBAR STYLES
   ============================================================================= */
/* Enlace "Saltar al contenido": invisible hasta que recibe foco con teclado. */
.cc-skip-link:focus {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: var(--cc-accent-yellow);
    color: var(--cc-primary-dark);
    font-weight: 700;
    border-radius: 0.375rem;
    text-decoration: none;
}

.cc-main:focus {
    outline: none;
}

.cc-navbar {
    /* Reason: el 55% de blanco de Bootstrap da 4.0:1 sobre el degradado. */
    --bs-navbar-color: rgba(255, 255, 255, 0.82);
    background: var(--cc-gradient-primary);
    box-shadow: var(--cc-shadow-md);
}

.cc-navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.cc-navbar .navbar-brand:hover {
    color: var(--cc-accent-yellow);
}

.cc-navbar .navbar-brand .cc-brand-icon {
    color: var(--cc-accent-yellow);
    margin-right: 0.5rem;
}

.cc-navbar .navbar-brand .cc-brand-text {
    color: var(--cc-accent-yellow);
}

/* Navbar Dropdown */
.cc-nav-dropdown {
    background: var(--cc-primary-dark, #1a2332);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 12rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cc-nav-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.cc-nav-dropdown .dropdown-item:hover,
.cc-nav-dropdown .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cc-accent-yellow);
}

.cc-nav-dropdown .dropdown-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cc-accent-yellow);
    font-weight: 600;
}/* =============================================================================
   FOOTER
   ============================================================================= */
.cc-footer {
    background: var(--cc-gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-top: 0;
    box-shadow: var(--cc-shadow-md);
}

.cc-footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--cc-accent-yellow);
}

.cc-footer-text {
    color: white;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cc-footer-email2 {
    color: var(--cc-accent-yellow);
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cc-footer-privacy {
    color: var(--cc-accent-yellow);
    font-size: 0.875rem;
}

.cc-footer-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.cc-footer-link:hover {
    color: var(--cc-accent-yellow);
    text-decoration: none;
    opacity: 1;
}

.cc-footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.cc-footer-copyright {
    color: white;
    text-align: center;
    margin-bottom: 0;
    opacity: 0.9;
} /* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */
/* Enhanced responsive breakpoints for better zoom handling */
@media (max-width: 992px) {
    .cc-hero {
        min-height: clamp(350px, 45vh, 500px);
    }
    
    .cc-hero-content {
        min-height: clamp(250px, 30vh, 400px);
    }
}

@media (max-width: 768px) {
    .cc-hero {
        min-height: clamp(300px, 40vh, 450px);
        padding: clamp(1rem, 2.5vw, 2rem) 0;
    }
    
    .cc-hero-content {
        min-height: clamp(200px, 25vh, 350px);
        padding: clamp(0.5rem, 1.5vw, 1rem) 0;
    }
    
    .cc-section {
        padding: clamp(2rem, 5vw, 4rem) 0;
    }
}

@media (max-width: 576px) {
    .cc-hero {
        min-height: clamp(250px, 35vh, 400px);
        padding: clamp(0.75rem, 2vw, 1.5rem) 0;
    }
    
    .cc-hero-content {
        min-height: clamp(150px, 20vh, 300px);
        padding: clamp(0.25rem, 1vw, 0.75rem) 0;
    }
    
    .cc-section {
        padding: clamp(1.5rem, 4vw, 3rem) 0;
    }
    
    .cc-feature-card,
    .cc-benefit-item {
        padding: clamp(1rem, 2.5vw, 1.5rem);
    }
}

/* Extra small devices and high zoom levels */
@media (max-width: 400px) {
    .cc-hero {
        min-height: clamp(200px, 30vh, 350px);
    }
    
    .cc-hero-content {
        min-height: clamp(120px, 18vh, 250px);
    }
    
    .cc-section {
        padding: clamp(1rem, 3vw, 2rem) 0;
    }
} /* =============================================================================
   HERO SECTION
   ============================================================================= */
.cc-hero {
    background: var(--cc-gradient-primary);
    min-height: clamp(400px, 50vh, 600px);
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.cc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(246, 213, 92, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cc-hero-content {
    position: relative;
    z-index: 2;
    min-height: clamp(300px, 35vh, 450px);
    display: flex;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1.5rem) 0;
}

.cc-hero-brand {
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cc-accent-yellow);
    font-weight: 700;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.2;
}

.cc-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.2;
}

.cc-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.6;
}

.cc-hero-cta {
    background: var(--cc-accent-yellow);
    color: var(--cc-gray-800);
    font-weight: 700;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--cc-shadow-lg);
    display: inline-block;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.cc-hero-cta:hover {
    background: var(--cc-accent-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--cc-shadow-xl);
    text-decoration: none;
}

.cc-hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1rem);
    justify-content: center;
    align-items: center;
}

.cc-hero-cta-whatsapp {
    /* Reason: blanco sobre #25d366 da 2.0:1; el verde oscuro da 6.4:1 y
       conserva el verde reconocible de WhatsApp. */
    background: #25d366;
    color: #073b1c;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cc-hero-cta-whatsapp:hover {
    background: #1ebe5d;
    color: #073b1c;
}

.cc-hero-cta-whatsapp .bi-whatsapp {
    font-size: 1.15em;
    line-height: 1;
}
/* =============================================================================
   FEATURE CARDS
   ============================================================================= */
.cc-feature-card {
    background: white;
    border: none;
    border-radius: 1rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--cc-shadow-sm);
    height: 100%;
}

.cc-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cc-shadow-lg);
}

.cc-feature-icon {
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    display: block;
}

.cc-feature-title {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: var(--cc-gray-800);
}

.cc-feature-description {
    color: var(--cc-gray-600);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

/* =============================================================================
   BENEFIT ITEMS
   ============================================================================= */
.cc-benefit-item {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1rem);
}

.cc-benefit-icon {
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    display: block;
}

.cc-benefit-title {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: var(--cc-gray-800);
}

.cc-benefit-description {
    color: var(--cc-gray-600);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */
.cc-cta-section {
    background: var(--cc-accent-yellow);
    text-align: center;
}

.cc-cta-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--cc-gray-800);
}

.cc-cta-button {
    background: var(--cc-primary-main);
    color: white;
    font-weight: 700;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--cc-shadow-md);
    display: inline-block;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.cc-cta-button:hover {
    background: var(--cc-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-lg);
    text-decoration: none;
}

/* =============================================================================
   COLLAPSIBLE SECTION STYLES
   ============================================================================= */
.card-header[style*="cursor: pointer"] {
    transition: background-color 0.2s ease;
}

.card-header[style*="cursor: pointer"]:hover {
    background-color: var(--cc-gray-50) !important;
}

.card-header[style*="cursor: pointer"] i {
    transition: transform 0.3s ease;
}

.card-header[style*="cursor: pointer"]:hover i {
    transform: scale(1.1);
}



 /* =============================================================================
   FORMS
   ============================================================================= */
.cc-form-container {
    background: white;
    border-radius: 1rem;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--cc-shadow-lg);
    border: none;
}

.cc-form-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--cc-gray-800);
}

.cc-form-subtitle {
    text-align: center;
    color: var(--cc-gray-600);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.cc-form-button {
    background: var(--cc-gradient-primary);
    border: none;
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--cc-shadow-sm);
    width: 100%;
}

.cc-form-button:hover {
    background: linear-gradient(135deg, var(--cc-primary-main) 0%, var(--cc-primary-light) 100%);
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-md);
}

/* Reason: el mismo boton se usa como <a> en las pantallas de cuenta (bloqueo,
   enlace vencido, lista de cuentas). Sin esto hereda de Bootstrap el subrayado
   de enlace y, al pasar el cursor, el azul de enlace sobre el fondo azul. */
a.cc-form-button,
a.cc-form-button:hover,
a.cc-form-button:focus {
    color: white;
    text-decoration: none;
}

/* Disabled state — applied while the form has no actionable input.
   Override :hover so the gradient and lift don't sneak back in. */
.cc-form-button:disabled,
.cc-form-button[disabled],
.cc-form-button:disabled:hover,
.cc-form-button[disabled]:hover {
    background: var(--cc-gray-400, #adb5bd);
    color: var(--cc-gray-100, #f8f9fa);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

/* =============================================================================
   CONSISTENT BUTTON STYLES
   ============================================================================= */
/* Base button styles for consistency across all forms */
.btn.cc-shadow-hover {
    transition: all 0.2s ease-in-out;
    box-shadow: var(--cc-shadow-sm);
}

.btn.cc-shadow-hover:hover {
    transform: translateY(-1px);
    box-shadow: var(--cc-shadow-md);
}

/* Primary button consistency */
.btn-primary.cc-shadow-hover {
    background-color: var(--cc-primary-main);
    border-color: var(--cc-primary-main);
}

.btn-primary.cc-shadow-hover:hover {
    background-color: var(--cc-primary-dark);
    border-color: var(--cc-primary-dark);
}

/* Success button consistency */
.btn-success.cc-shadow-hover {
    background-color: var(--cc-success-main);
    border-color: var(--cc-success-main);
}

.btn-success.cc-shadow-hover:hover {
    background-color: var(--cc-success-dark);
    border-color: var(--cc-success-dark);
}

/* Outline primary button consistency */
.btn-outline-primary.cc-shadow-hover {
    color: var(--cc-primary-main);
    border-color: var(--cc-primary-main);
}

.btn-outline-primary.cc-shadow-hover:hover {
    background-color: var(--cc-primary-main);
    border-color: var(--cc-primary-main);
}

/* Outline secondary button consistency */
.btn-outline-secondary.cc-shadow-hover {
    color: var(--cc-gray-600);
    border-color: var(--cc-gray-600);
}

.btn-outline-secondary.cc-shadow-hover:hover {
    background-color: var(--cc-gray-600);
    border-color: var(--cc-gray-600);
}

/* Small button consistency */
.btn-sm.cc-shadow-hover {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

/* Large button consistency */
.btn-lg.cc-shadow-hover {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

/* Warning button consistency */
.btn-warning.cc-shadow-hover {
    background-color: var(--cc-warning-main);
    border-color: var(--cc-warning-main);
    color: var(--cc-gray-800);
}

.btn-warning.cc-shadow-hover:hover {
    background-color: var(--cc-warning-dark);
    border-color: var(--cc-warning-dark);
    color: var(--cc-gray-800);
}

/* Danger button consistency */
.btn-danger.cc-shadow-hover {
    background-color: var(--cc-danger-main);
    border-color: var(--cc-danger-main);
}

.btn-danger.cc-shadow-hover:hover {
    background-color: var(--cc-danger-dark);
    border-color: var(--cc-danger-dark);
}

/* Info button consistency */
.btn-info.cc-shadow-hover {
    background-color: var(--cc-info-main);
    border-color: var(--cc-info-main);
    color: white;
}

.btn-info.cc-shadow-hover:hover {
    background-color: var(--cc-info-dark);
    border-color: var(--cc-info-dark);
    color: white;
}

/* Outline variants for other colors */
.btn-outline-success.cc-shadow-hover {
    color: var(--cc-success-main);
    border-color: var(--cc-success-main);
}

.btn-outline-success.cc-shadow-hover:hover {
    background-color: var(--cc-success-main);
    border-color: var(--cc-success-main);
}

.btn-outline-warning.cc-shadow-hover {
    color: var(--cc-warning-main);
    border-color: var(--cc-warning-main);
}

.btn-outline-warning.cc-shadow-hover:hover {
    background-color: var(--cc-warning-main);
    border-color: var(--cc-warning-main);
    color: var(--cc-gray-800);
}

.btn-outline-danger.cc-shadow-hover {
    color: var(--cc-danger-main);
    border-color: var(--cc-danger-main);
}

.btn-outline-danger.cc-shadow-hover:hover {
    background-color: var(--cc-danger-main);
    border-color: var(--cc-danger-main);
}

.btn-outline-info.cc-shadow-hover {
    color: var(--cc-info-main);
    border-color: var(--cc-info-main);
}

.btn-outline-info.cc-shadow-hover:hover {
    background-color: var(--cc-info-main);
    border-color: var(--cc-info-main);
    color: white;
}

/* Disabled state consistency */
.btn.cc-shadow-hover:disabled,
.btn.cc-shadow-hover.disabled {
    opacity: 0.65;
    transform: none !important;
    box-shadow: var(--cc-shadow-sm) !important;
    pointer-events: none;
}

/* Button group consistency */
.btn-group .btn.cc-shadow-hover {
    border-radius: 0;
}

.btn-group .btn.cc-shadow-hover:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn.cc-shadow-hover:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Button toolbar consistency */
.btn-toolbar .btn.cc-shadow-hover {
    margin-right: 0.5rem;
}

.btn-toolbar .btn.cc-shadow-hover:last-child {
    margin-right: 0;
}

/* Icon button consistency */
.btn.cc-shadow-hover .bi,
.btn.cc-shadow-hover .fas,
.btn.cc-shadow-hover .far {
    margin-right: 0.5rem;
}

.btn.cc-shadow-hover .bi:last-child,
.btn.cc-shadow-hover .fas:last-child,
.btn.cc-shadow-hover .far:last-child {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Loading state for buttons */
.btn.cc-shadow-hover.loading {
    position: relative;
    color: transparent !important;
}

.btn.cc-shadow-hover.loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================================
   AUTOCOMPLETE DROPDOWN STYLES
   ============================================================================= */
.autocomplete-dropdown {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Field graying out styles */
.tag-field, .veh-field {
    transition: opacity 0.3s ease;
}

.tag-field.disabled, .veh-field.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =============================================================================
   VEHICLE SEARCH SPECIFIC STYLES
   ============================================================================= */
.cc-form-icon {
    color: var(--cc-primary-main);
}

.cc-form-switch-container {
    min-width: 220px;
}

.cc-search-button {
    min-width: 120px;
}

.cc-collapsible-header {
    cursor: pointer;
}

.cc-collapsible-icon {
    color: var(--cc-primary-main);
    transition: transform 0.3s ease;
}

.cc-collapsible-header:hover .cc-collapsible-icon {
    transform: scale(1.1);
}

/* =============================================================================
   VEHICLE SEARCH RESPONSIVE FIXES
   ============================================================================= */

/* Responsive fixes for vehicle search form */
@media (max-width: 768px) {
    /* Stack form elements vertically on medium screens and smaller */
    .cc-form-container form .row .col-md-3,
    .cc-form-container form .row .col-md-6,
    .cc-form-container form .row .col-sm-6,
    .cc-form-container form .row .col-12 {
        margin-bottom: 1rem;
    }
    
    /* Ensure proper spacing between form rows */
    .cc-form-container form .row {
        margin-bottom: 0;
    }
    
    /* Make the recent charges toggle and date range buttons stack properly */
    .cc-form-container form .row .col-md-6.d-flex,
    .cc-form-container form .row .col-md-3.d-flex,
    .cc-form-container form .row .col-12.d-flex {
        justify-content: flex-start !important;
        margin-bottom: 1rem;
    }
    
    /* Ensure the search button is properly positioned */
    .cc-form-container form .row .col-md-3.d-flex:last-child,
    .cc-form-container form .row .col-12.d-flex:last-child {
        justify-content: flex-start !important;
        margin-bottom: 0;
    }
    
    /* Adjust button group spacing */
    #date-range-buttons {
        flex-wrap: wrap;
        gap: 0.25rem;
        width: 100%;
        justify-content: center;
    }
    
    #date-range-buttons .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
    
    /* Ensure the recent toggle has proper spacing */
    .cc-form-switch-container {
        min-width: auto;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Make search button full width on mobile */
    .cc-search-button {
        min-width: auto;
        width: 100%;
    }
}

/* Additional breakpoint for intermediate screen sizes where overlap occurs */
@media (max-width: 650px) {
    /* Force vertical stacking for the problematic elements */
    .cc-form-container form .row .col-md-6.d-flex,
    .cc-form-container form .row .col-md-3.d-flex,
    .cc-form-container form .row .col-12.d-flex {
        justify-content: center !important;
        margin-bottom: 1.5rem;
    }
    
    /* Ensure proper spacing between the toggle and button group */
    .cc-form-container form .row .col-md-6.d-flex {
        margin-bottom: 2rem;
    }
    
    /* Adjust button group to prevent overlap */
    #date-range-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    #date-range-buttons .btn {
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Ensure search button has proper spacing */
    .cc-search-button {
        margin-top: 1rem;
    }
}

/* More aggressive breakpoint to prevent any overlap */
@media (max-width: 700px) {
    /* Force all form elements to stack vertically */
    .cc-form-container form .row .col-md-6.d-flex,
    .cc-form-container form .row .col-md-3.d-flex,
    .cc-form-container form .row .col-12.d-flex {
        justify-content: center !important;
        margin-bottom: 2rem;
        width: 100% !important;
    }
    
    /* Ensure the toggle and buttons are properly separated */
    .cc-form-container form .row .col-md-6.d-flex {
        margin-bottom: 2.5rem;
    }
    
    /* Make button group stack vertically */
    #date-range-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    #date-range-buttons .btn {
        width: 100%;
        margin-bottom: 0;
        padding: 0.5rem 1rem;
    }
    
    /* Ensure search button is properly spaced */
    .cc-search-button {
        margin-top: 1.5rem;
        width: 100%;
    }
    
    /* Ensure the recent toggle has proper spacing */
    .cc-form-switch-container {
        width: 100%;
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

/* Breakpoint specifically for when sidebar is open and content area is constrained */
@media (max-width: 1200px) {
    /* When sidebar is open, force vertical stacking earlier */
    .cc-sidebar:not(.cc-sidebar-collapsed) ~ main .cc-form-container form .row .col-md-6.d-flex,
    .cc-sidebar:not(.cc-sidebar-collapsed) ~ main .cc-form-container form .row .col-md-3.d-flex,
    .cc-sidebar:not(.cc-sidebar-collapsed) ~ main .cc-form-container form .row .col-12.d-flex {
        justify-content: center !important;
        margin-bottom: 2rem;
        width: 100% !important;
    }
    
    /* Ensure proper spacing when sidebar is open */
    .cc-sidebar:not(.cc-sidebar-collapsed) ~ main .cc-form-container form .row .col-md-6.d-flex {
        margin-bottom: 2.5rem;
    }
    
    /* Make button group stack vertically when sidebar is open */
    .cc-sidebar:not(.cc-sidebar-collapsed) ~ main #date-range-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .cc-sidebar:not(.cc-sidebar-collapsed) ~ main #date-range-buttons .btn {
        width: 100%;
        margin-bottom: 0;
        padding: 0.5rem 1rem;
    }
    
    /* Ensure search button is properly spaced when sidebar is open */
    .cc-sidebar:not(.cc-sidebar-collapsed) ~ main .cc-search-button {
        margin-top: 1.5rem;
        width: 100%;
    }
    
    /* Ensure the recent toggle has proper spacing when sidebar is open */
    .cc-sidebar:not(.cc-sidebar-collapsed) ~ main .cc-form-switch-container {
        width: 100%;
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    /* Further adjustments for very small screens */
    .cc-form-container form .row .col-md-3,
    .cc-form-container form .row .col-md-6,
    .cc-form-container form .row .col-sm-6,
    .cc-form-container form .row .col-12 {
        margin-bottom: 1.5rem;
    }
    
    /* Stack date range buttons vertically on very small screens */
    #date-range-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    #date-range-buttons .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    /* Ensure form labels are properly spaced */
    .cc-form-container form .form-label {
        margin-bottom: 0.5rem;
    }
    
    /* Adjust form controls for better mobile experience */
    .cc-form-container form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Ensure proper spacing for flex containers */
    .cc-form-container form .row .col-12.d-flex {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    /* Ultra-small screen adjustments */
    .cc-form-container form .row .col-md-3,
    .cc-form-container form .row .col-md-6,
    .cc-form-container form .row .col-sm-6,
    .cc-form-container form .row .col-12 {
        margin-bottom: 2rem;
    }
    
    /* Make the recent toggle more compact */
    .cc-form-switch-container {
        padding: 0.5rem 0;
    }
    
    /* Ensure proper spacing for the search button */
    .cc-search-button {
        margin-top: 0.5rem;
    }
    
    /* Center all elements on ultra-small screens */
    .cc-form-container form .row .col-12.d-flex {
        justify-content: center !important;
    }
}/* =============================================================================
   ERROR BADGES
   ============================================================================= */

/* Base error badge styling */
.cc-error-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    line-height: 1.2;
}

/* Error type specific badges - using improved calm chart palette */
.cc-error-badge.cc-error-none {
    background-color: var(--cc-ok-18);
    color: var(--cc-ok-text);
    border: 1px solid var(--cc-ok);
}

.cc-error-badge.cc-error-duplicate {
    background-color: var(--cc-critical-30);
    color: var(--cc-critical-text);
    border: 1px solid var(--cc-critical);
}

.cc-error-badge.cc-error-unknown {
    background-color: var(--cc-unknown-22);
    color: var(--cc-unknown-text);
    border: 1px solid var(--cc-unknown);
}

.cc-error-badge.cc-error-wrong-rate {
    background-color: var(--cc-minor-22);
    color: var(--cc-minor-text);
    border: 1px solid var(--cc-minor);
}

/* Reason: los cruces que marco el cliente con sus reglas se pintan aparte de
   los que detectamos nosotros. La etiqueta sigue diciendo COMO se va a reclamar
   ("Duplicado", "No reconocido", "Tarifa incorrecta"), porque eso decide si se
   pide el cruce completo o el excedente; lo que cambia es el color, que ahora
   responde otra pregunta: quien lo puso ahi. Sin esto, un renglon marcado por
   una regla del cliente y uno detectado por nosotros se ven identicos, y en la
   junta con el cliente no habia forma de separar nuestro producto de sus
   propias declaraciones. */
.cc-error-badge.cc-error-regla {
    background-color: var(--cc-regla-22);
    color: var(--cc-regla-text);
    border: 1px solid var(--cc-regla);
}

/* Hover effects for interactive badges */
.cc-error-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

/* =============================================================================
   DROPDOWN ITEM STYLES (GENERAL)
   ============================================================================= */

/* Base dropdown item styling */
.dropdown-item.form-check {
    padding: 0.75rem 1rem;
    margin: 0.125rem 0;
    border-radius: 0.375rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item.form-check:hover {
    background-color: var(--cc-gray-100);
}

.dropdown-item.form-check .form-check-input {
    margin-right: 0.75rem;
    margin-top: 0;
}

.dropdown-item.form-check .form-check-label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

/* General dropdown menu form check styling */
.dropdown-menu .form-check {
    margin: 0;
    padding: 0;
}

.dropdown-menu .form-check input[type="checkbox"] {
    margin: 0;
}

/* Button styling for dropdown toggles */
.btn-outline-secondary.dropdown-toggle {
    border: 1px solid var(--cc-gray-300);
    background-color: white;
    color: var(--cc-gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease-in-out;
}

.btn-outline-secondary.dropdown-toggle:hover {
    background-color: var(--cc-gray-100);
    border-color: var(--cc-gray-400);
    color: var(--cc-gray-800);
}

.btn-outline-secondary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
    border-color: var(--cc-gray-400);
}

/* Active state for dropdown toggle */
.btn-outline-secondary.dropdown-toggle:active,
.btn-outline-secondary.dropdown-toggle.show {
    background-color: var(--cc-gray-200);
    border-color: var(--cc-gray-500);
    color: var(--cc-gray-900);
}

.btn-outline-secondary.dropdown-toggle[aria-expanded="true"] {
    background-color: var(--cc-gray-200);
    border-color: var(--cc-gray-500);
    color: var(--cc-gray-900);
} /* =============================================================================
   TRUCK LOADING ANIMATION
   ============================================================================= */
.cc-truck-loader {
    position: relative;
    width: 60px;
    height: 60px;
    overflow: hidden;
    margin: 0 auto 12px auto;
    display: none; /* Hidden by default */
}

.cc-truck-loader i {
    position: absolute;
    font-size: 60px;
    top: 0;
    left: 0;
    opacity: 0;
    color: var(--cc-primary-dark);
    font-weight: 900;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
}

/* Ensure the icon content is properly styled */
.cc-truck-loader i::before {
    color: inherit;
    font-weight: inherit;
}

/* Alternative styling to ensure truck details are visible */
.cc-truck-loader .bi-truck,
.cc-truck-loader .bi-truck-flatbed {
    background: transparent;
    border: none;
    text-shadow: 
        0 1px 0 var(--cc-primary-light),
        1px 0 0 var(--cc-primary-light),
        0 -1px 0 var(--cc-primary-light),
        -1px 0 0 var(--cc-primary-light);
}

/* Fallback: if Bootstrap Icons aren't showing details, add manual styling */
.cc-truck-loader i {
    filter: contrast(1.2) brightness(0.9);
}

/* Truck with load exits first */
.cc-truck-loaded {
    animation: ccLoadedTruckDriveOut 4s ease-in-out infinite;
}

/* Flatbed enters and fades into the loaded truck */
.cc-truck-flatbed {
    animation: ccFlatbedTruckEnter 4s linear infinite;
}

@keyframes ccLoadedTruckDriveOut {
    0%, 5% {
        transform: translateX(0);
        opacity: 1;
    }
    40% {
        transform: translateX(150%);
        opacity: 1;
    }
    60% {
        transform: translateX(150%);
        opacity: 0;
    }
    70% {
        transform: translateX(0%);
        opacity: 0;
    }
    90% {
        transform: translateX(0%);
        opacity: 1;
    }
    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes ccFlatbedTruckEnter {
    0%, 39% {
        transform: translateX(-150%);
        opacity: 0;
    }
    40% {
        transform: translateX(-100%);
        opacity: 1;
    }
    60% {
        transform: translateX(-20%);
        opacity: 1;
        animation-timing-function: linear;
    }
    70% {
        transform: translateX(0%);
        opacity: 1;
        animation-timing-function: ease-out;
    }
    90% {
        transform: translateX(0%);
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
        opacity: 0;
    }
}

.cc-truck-loading-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--cc-gray-700);
    text-align: center;
    margin-top: 8px;
}

/* Loading overlay for full screen coverage */
.cc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    z-index: var(--z-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cc-loading-overlay.active {
    display: flex;
}

.cc-loading-overlay .cc-truck-loader {
    display: block;
} 

/* Card-scoped overlay */
.cc-card-loading-container {
    position: relative;
}

.cc-card-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(1px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cc-card-loading-overlay .cc-truck-loader {
    display: block;
}

.cc-card-loading-overlay.hidden {
    display: none;
}/* =============================================================================
   HOME PAGE SPECIFIC STYLES
   ============================================================================= */

/* Home page specific spacing fixes */
.cc-hero + .cc-how-it-works {
    padding-top: clamp(2rem, 3vw, 2.5rem) !important;
}

.cc-how-it-works {
    padding-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

/* Better spacing between sections on home page - reduce excessive padding */
.cc-section + .cc-section {
    padding-top: clamp(1.5rem, 2.5vw, 2rem) !important;
}

/* Reduce space between benefits section and CTA */
.cc-section:has(.cc-benefit-item) {
    padding-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

/* Eliminate gap between mid-page CTA and contact form */
.cc-cta-section + .cc-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Specifically target the benefits section to reduce excessive whitespace */
.cc-section:has(.cc-benefit-item) {
    padding-top: clamp(1.5rem, 2.5vw, 2rem) !important;
    padding-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

/* Additional home page section spacing improvements */
.cc-how-it-works .cc-section-title {
    margin-top: clamp(0.5rem, 1vw, 1rem) !important;
    margin-bottom: clamp(1.5rem, 2.5vw, 2rem) !important;
}

/* Better spacing for benefits section */
.cc-section:has(.cc-benefit-item) + .cc-cta-section {
    margin-top: clamp(0.5rem, 1vw, 1rem) !important;
}

/* Contact form section spacing - no gap with CTA */
#contact-form.cc-section {
    margin-top: 0 !important;
    padding-top: clamp(2rem, 3vw, 2.5rem) !important;
}

/* Specific home page section optimizations */
.cc-how-it-works {
    padding: clamp(1.5rem, 2.5vw, 2rem) 0 clamp(1rem, 1.5vw, 1.5rem) 0 !important;
}

/* CTA section should be compact */
.cc-cta-section {
    padding: clamp(1.5rem, 2.5vw, 2rem) 0 !important;
}

/* =============================================================================
   SOCIAL PROOF / STATS SECTION
   ============================================================================= */

.cc-section-dark {
    background: linear-gradient(135deg, var(--cc-primary-dark) 0%, var(--cc-primary-main) 100%);
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
}

.cc-text-white {
    color: #fff !important;
}

.cc-text-white-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cc-stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, background 0.2s ease;
}

.cc-stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.cc-stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--cc-accent-yellow);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.cc-stat-label {
    color: white;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cc-stat-intro {
    text-align: center;
    color: var(--cc-accent-yellow);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.cc-stat-disclaimer {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* =============================================================================
   SUBTLE NAVIGATION LINKS
   ============================================================================= */

.cc-link-subtle {
    color: var(--cc-primary-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.cc-link-subtle:hover {
    color: var(--cc-accent-yellow);
    text-decoration: none;
}

.cc-link-subtle i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.cc-link-subtle:hover i {
    transform: translateX(3px);
}

/* Light variant for dark/colored backgrounds */
.cc-link-subtle-light {
    color: rgba(255, 255, 255, 0.7);
}

.cc-link-subtle-light:hover {
    color: var(--cc-accent-yellow);
}

.cc-link-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.75rem;
}/* =============================================================================
   FUNCIONALIDADES PAGE STYLES
   ============================================================================= */

/* Shorter hero for interior pages */
.cc-hero-short {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem) 0;
}

.cc-hero-short .cc-hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

/* Feature cards with icon badges */
.cc-feature-card-detailed {
    padding: 1.75rem;
    height: 100%;
    text-align: center;
}

.cc-feature-card-detailed .cc-feature-title {
    text-align: center;
}

.cc-feature-card-detailed .cc-feature-description {
    text-align: left;
}

.cc-feature-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 1rem auto;
    color: #fff;
}

.cc-badge-danger { background: var(--cc-danger); }
.cc-badge-warning { background: var(--cc-warning); }
.cc-badge-info { background: var(--cc-primary-main); }
.cc-badge-success { background: var(--cc-success); }
.cc-badge-primary { background: var(--cc-primary-dark); }

/* Compact feature cards (4-column dashboard section) */
.cc-feature-card-compact {
    padding: 1.25rem;
    height: 100%;
    text-align: center;
}

.cc-feature-icon-sm {
    font-size: 1.75rem;
    color: var(--cc-primary-main);
    margin-bottom: 0.75rem;
    display: block;
}

.cc-feature-title-sm {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--cc-gray-800);
}

.cc-feature-desc-sm {
    font-size: 0.9rem;
    color: var(--cc-gray-600);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Larger description text for feature sections */
.cc-feature-description-lg {
    font-size: 1.05rem;
    color: var(--cc-gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Highlight box (aclaraciones section) */
.cc-feature-highlight-box {
    background: var(--cc-gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--cc-gray-200);
}

.cc-feature-highlight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
}

.cc-feature-highlight-item:not(:last-child) {
    border-bottom: 1px solid var(--cc-gray-200);
}

.cc-feature-highlight-item i {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cc-feature-highlight-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--cc-gray-800);
    margin-bottom: 0.25rem;
}

.cc-feature-highlight-item p {
    font-size: 0.9rem;
    color: var(--cc-gray-600);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Section subtitle (used below section titles) */
.cc-section-subtitle {
    text-align: center;
    color: var(--cc-gray-600);
    font-size: 1.05rem;
    max-width: 700px;
    margin: -0.5rem auto 1rem auto;
    line-height: 1.6;
}

/* Product screenshots (real dashboard, identifiers removed) */
.cc-shot {
    margin: 2.5rem auto 0 auto;
    max-width: 900px;
}

.cc-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--cc-gray-200);
    border-radius: 12px;
    box-shadow: var(--cc-shadow-lg);
}

.cc-shot figcaption {
    text-align: center;
    color: var(--cc-gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.75rem;
}

/* Reason: la ruta es una imagen alta; se recorta para que no domine la sección. */
.cc-shot-tall img {
    max-height: 520px;
    object-fit: cover;
    object-position: top;
}
/* =============================================================================
   PAGE: Conciliación de peajes (pillar page)
   Maturity-curve diagrams + positioning highlight. Light theme (marketing site).
   ============================================================================= */

/* Figure wrapper: center the chart, let it scroll on narrow screens */
.cc-madurez-figure {
    margin: 2rem auto 0.5rem;
    max-width: 820px;
}
.cc-madurez-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.cc-madurez-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--cc-gray-600);
    font-style: italic;
    margin-top: 0.5rem;
}
.cc-madurez-lead {
    margin-top: 2.25rem;
}

/* --- SVG diagram elements (shared by both charts) --- */
.cc-mad-axis { stroke: var(--cc-gray-400); stroke-width: 1.5; }
.cc-mad-axis-fill { fill: var(--cc-gray-400); }
.cc-mad-axis-label {
    fill: var(--cc-gray-700);
    font-size: 13px;
    font-style: italic;
    font-family: inherit;
}
.cc-mad-area { fill: var(--cc-primary-main); opacity: 0.07; }
.cc-mad-curve { fill: none; stroke: var(--cc-primary-dark); stroke-width: 3; stroke-linecap: round; }
.cc-mad-marker { fill: #ffffff; stroke: var(--cc-primary-main); stroke-width: 2.4; }
.cc-mad-stage {
    fill: var(--cc-gray-700);
    font-size: 15px;
    font-style: italic;
    font-family: inherit;
}
.cc-mad-strong { fill: var(--cc-primary-dark); font-weight: 700; font-style: normal; }
.cc-mad-count {
    fill: var(--cc-primary-main);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: inherit;
}
.cc-mad-callout { fill: var(--cc-accent-yellow); }
.cc-mad-callout-text {
    fill: var(--cc-primary-dark);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
}

/* Reframe chart (part 4) */
.cc-mad-guide { stroke: var(--cc-gray-300); stroke-width: 1.4; stroke-dasharray: 3 5; fill: none; }
.cc-mad-tick { fill: var(--cc-gray-600); font-size: 12px; font-family: inherit; }
.cc-mad-faint { fill: #ffffff; stroke: var(--cc-gray-400); stroke-width: 2; }
.cc-mad-faint-label { fill: var(--cc-gray-600); font-size: 13.5px; font-family: inherit; }
.cc-mad-halo { fill: var(--cc-success); opacity: 0.16; }
.cc-mad-green { fill: var(--cc-success); stroke: #ffffff; stroke-width: 2; }
.cc-mad-green-label { fill: var(--cc-success-dark); font-weight: 700; font-size: 15px; font-family: inherit; }
.cc-mad-green-sub { fill: var(--cc-gray-700); font-size: 13.5px; font-family: inherit; }

/* --- Positioning highlight box (part 3) --- */
.cc-conc-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: #ffffff;
    border: 1px solid var(--cc-gray-200);
    border-left: 4px solid var(--cc-primary-main);
    border-radius: 12px;
    box-shadow: var(--cc-shadow-sm);
}
.cc-conc-highlight i {
    color: var(--cc-primary-main);
    font-size: 1.6rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.cc-conc-highlight p {
    margin: 0;
    color: var(--cc-gray-800);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Icon color helpers (scoped, in case globals are absent) */
.cc-text-danger { color: var(--cc-danger); }
.cc-text-warning { color: var(--cc-warning); }
.cc-text-success { color: var(--cc-success); }

@media (max-width: 640px) {
    .cc-mad-stage, .cc-mad-faint-label, .cc-mad-green-label { font-size: 17px; }
    .cc-mad-axis-label { font-size: 15px; }
}
/* =============================================================================
   COMO FUNCIONA PAGE - TIMELINE STYLES
   ============================================================================= */

/* Timeline container */
.cc-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Vertical line */
.cc-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cc-gray-200);
}

/* Each step */
.cc-timeline-step {
    position: relative;
    padding-left: 68px;
    padding-bottom: 2.5rem;
}

.cc-timeline-step:last-child {
    padding-bottom: 0;
}

/* Numbered marker */
.cc-timeline-marker {
    position: absolute;
    left: 8px;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cc-primary-main);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Content card */
.cc-timeline-content {
    background: #fff;
    border: 1px solid var(--cc-gray-200);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--cc-shadow-sm);
    transition: box-shadow 0.2s ease;
}

.cc-timeline-content:hover {
    box-shadow: var(--cc-shadow-md);
}

/* Badge: who does this step */
.cc-timeline-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.cc-badge-user {
    background: rgba(246, 213, 92, 0.2);
    color: #7a5d06;
}

.cc-badge-platform {
    background: rgba(43, 108, 176, 0.12);
    color: var(--cc-primary-main);
}

/* Step title and description */
.cc-timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cc-gray-800);
    margin-bottom: 0.5rem;
}

.cc-timeline-description {
    font-size: 0.95rem;
    color: var(--cc-gray-600);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Time estimate */
.cc-timeline-meta {
    display: flex;
    gap: 1rem;
}

.cc-timeline-time {
    font-size: 0.85rem;
    color: var(--cc-gray-600);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cc-timeline-time i {
    font-size: 0.9rem;
}

/* Cadence note below timeline */
.cc-timeline-cadence {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--cc-gray-50);
    border: 1px solid var(--cc-gray-200);
    border-radius: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cc-timeline-cadence i {
    font-size: 1.3rem;
    color: var(--cc-primary-main);
    flex-shrink: 0;
    margin-top: 2px;
}

.cc-timeline-cadence p {
    font-size: 0.95rem;
    color: var(--cc-gray-600);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive: mobile */
@media (max-width: 576px) {
    .cc-timeline::before {
        left: 18px;
    }

    .cc-timeline-step {
        padding-left: 52px;
    }

    .cc-timeline-marker {
        left: 2px;
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .cc-timeline-content {
        padding: 1rem;
    }

    .cc-timeline-title {
        font-size: 1.05rem;
    }
}
/* =============================================================================
   PRECIOS PAGE STYLES
   ============================================================================= */

/* Pricing Model Steps */
.cc-pricing-model {
    margin-top: 2rem;
}

.cc-pricing-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.cc-pricing-step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--cc-accent-yellow);
    color: var(--cc-primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-pricing-step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cc-primary-dark);
    margin-bottom: 0.35rem;
}

.cc-pricing-step-content p {
    color: var(--cc-text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}
/* =============================================================================
   FAQ PAGE STYLES
   ============================================================================= */

/* Accordion container */
.cc-faq-accordion {
    --bs-accordion-border-color: var(--cc-border-light, #e5e7eb);
    --bs-accordion-border-radius: 0.5rem;
}

/* Accordion items */
.cc-faq-accordion-item {
    border: none;
    border-bottom: 1px solid var(--cc-border-light, #e5e7eb);
    background: transparent;
}

.cc-faq-accordion-item:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.cc-faq-accordion-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Accordion button (question) */
.cc-faq-accordion-btn {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cc-primary-dark);
    background: transparent;
    padding: 1.25rem 0;
    box-shadow: none;
    border: none;
}

.cc-faq-accordion-btn:not(.collapsed) {
    color: var(--cc-primary-dark);
    background: transparent;
    box-shadow: none;
}

.cc-faq-accordion-btn:focus {
    box-shadow: none;
    border-color: transparent;
}

.cc-faq-accordion-btn::after {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a2332'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Accordion body (answer) */
.cc-faq-accordion-body {
    padding: 0 0 1.25rem 0;
}

.cc-faq-accordion-body p {
    color: var(--cc-text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.cc-faq-accordion-body p:last-child {
    margin-bottom: 0;
}

/* Links inside FAQ answers - higher contrast for readability on light bg */
.cc-faq-accordion-body a {
    color: var(--cc-primary-dark, #1a2332);
    text-decoration: underline;
    font-weight: 500;
}

.cc-faq-accordion-body a:hover {
    color: var(--cc-primary, #2c5282);
}

/* FAQ list items (bullet points) */
.cc-faq-list-items {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.cc-faq-list-items li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--cc-text-secondary);
    line-height: 1.6;
}

.cc-faq-list-items li:last-child {
    margin-bottom: 0;
}

.cc-faq-list-items li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cc-accent-yellow);
}

.cc-faq-list-items li strong {
    color: var(--cc-primary-dark);
}
/* =============================================================================
   BLOG STYLES
   ============================================================================= */

/* Sidebar */
.cc-blog-sidebar {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--cc-border-light, #e5e7eb);
}

.cc-blog-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cc-primary-dark);
    margin-bottom: 1rem;
}

.cc-blog-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-blog-category-list li {
    margin-bottom: 0.25rem;
}

.cc-blog-category-link {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--cc-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.cc-blog-category-link:hover {
    background: var(--cc-gray-50, #f9fafb);
    color: var(--cc-primary-dark);
}

.cc-blog-category-link.active {
    background: var(--cc-accent-yellow);
    color: var(--cc-primary-dark);
    font-weight: 600;
}

/* Post List */
.cc-blog-post-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cc-blog-post-card {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--cc-border-light, #e5e7eb);
}

.cc-blog-post-card:first-child {
    padding-top: 0;
}

.cc-blog-post-card:last-child {
    border-bottom: none;
}

.cc-blog-post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cc-blog-post-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cc-primary-dark);
    background: var(--cc-accent-yellow);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.cc-blog-post-date {
    font-size: 0.85rem;
    color: var(--cc-text-secondary);
}

.cc-blog-post-reading-time {
    font-size: 0.85rem;
    color: var(--cc-text-secondary);
}

.cc-blog-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cc-blog-post-title a {
    color: var(--cc-primary-dark);
    text-decoration: none;
}

.cc-blog-post-title a:hover {
    color: var(--cc-primary-main, #2c5282);
}

.cc-blog-post-excerpt {
    color: var(--cc-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Empty state */
.cc-blog-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--cc-text-secondary);
}

/* Pagination */
.cc-blog-pagination {
    margin-top: 2rem;
}

.cc-blog-pagination .page-link {
    color: var(--cc-primary-dark);
    border-color: var(--cc-border-light, #e5e7eb);
}

.cc-blog-pagination .page-item.active .page-link {
    background: var(--cc-primary-dark);
    border-color: var(--cc-primary-dark);
    color: white;
}

/* Detail page */
.cc-blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cc-blog-detail-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--cc-accent-yellow);
    text-decoration: none;
}

.cc-blog-detail-category:hover {
    text-decoration: underline;
}

.cc-blog-detail-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.cc-blog-detail-reading-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Article content (rendered markdown) */
.cc-blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cc-text-primary, #1a2332);
}

/* "Lo esencial" summary block - first paragraph if bold */
.cc-blog-content > p:first-child strong {
    color: var(--cc-primary-dark);
}

.cc-blog-content > p:first-child {
    background: var(--cc-gray-50, #f9fafb);
    border-left: 3px solid var(--cc-accent-yellow);
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cc-blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--cc-primary-dark);
}

.cc-blog-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--cc-primary-dark);
}

.cc-blog-content p {
    margin-bottom: 1.25rem;
}

.cc-blog-content ul,
.cc-blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.cc-blog-content li {
    margin-bottom: 0.5rem;
}

.cc-blog-content a {
    color: var(--cc-primary-main, #2c5282);
    text-decoration: underline;
}

.cc-blog-content a:hover {
    color: var(--cc-primary-dark);
}

.cc-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.cc-blog-content blockquote {
    border-left: 3px solid var(--cc-accent-yellow);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--cc-text-secondary);
    font-style: italic;
}

.cc-blog-content strong {
    color: var(--cc-primary-dark);
}

.cc-blog-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.cc-blog-content th,
.cc-blog-content td {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--cc-border-light, #e5e7eb);
    text-align: left;
    white-space: nowrap;
}

.cc-blog-content td:first-child,
.cc-blog-content th:first-child {
    white-space: normal;
    min-width: 9.5rem;
}

.cc-blog-content th {
    color: var(--cc-primary-dark);
    font-weight: 600;
    border-bottom-width: 2px;
}

/* Share buttons */
.cc-blog-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--cc-border-light, #e5e7eb);
}

.cc-blog-share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cc-text-secondary);
}

.cc-blog-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.cc-blog-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--cc-border-light, #e5e7eb);
    background: white;
    color: var(--cc-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cc-blog-share-btn:hover {
    border-color: var(--cc-primary-dark);
    color: var(--cc-primary-dark);
    transform: translateY(-1px);
}

.cc-share-linkedin:hover {
    border-color: #0A66C2;
    color: #0A66C2;
}

.cc-share-twitter:hover {
    border-color: #000;
    color: #000;
}

/* Hide native share on desktop (only works on mobile) */
@media (min-width: 768px) {
    .cc-share-native {
        display: none;
    }
}

/* Back link */
.cc-blog-back {
    padding-top: 1.5rem;
    border-top: 1px solid var(--cc-border-light, #e5e7eb);
}

/* Responsive: stack sidebar on mobile */
@media (max-width: 991.98px) {
    .cc-blog-sidebar {
        margin-bottom: 1.5rem;
    }

    .cc-blog-category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .cc-blog-category-list li {
        margin-bottom: 0;
    }
}
/* =============================================================================
   CONTACT PAGE SPECIFIC
   ============================================================================= */
.cc-contact-hero {
    background: var(--cc-gradient-primary);
    padding: 3rem 0;
}

.cc-contact-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cc-contact-hero-subtitle {
    font-size: 1.1rem;
    color: var(--cc-gray-100);
}

.cc-contact-info-box {
    background: var(--cc-gray-50);
    padding: 2rem;
    border-radius: 0.5rem;
}

.cc-contact-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--cc-gray-800);
}

.cc-contact-steps {
    margin-bottom: 2rem;
}

.cc-contact-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cc-contact-benefit:last-child {
    margin-bottom: 0;
}

.cc-contact-benefit-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--cc-accent-yellow);
    color: var(--cc-primary-dark);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.cc-contact-benefit-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--cc-primary-dark, var(--cc-gray-800));
}

.cc-contact-benefit-text {
    color: var(--cc-text-secondary, var(--cc-gray-600));
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact email link */
.cc-contact-email {
    color: var(--cc-primary-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.cc-contact-email:hover {
    color: var(--cc-primary-dark, #1a3a5c);
    text-decoration: underline;
}

.cc-contact-email-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cc-contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: #073b1c;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.cc-contact-whatsapp-btn:hover {
    background: #1ebe5d;
    color: #073b1c;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.cc-contact-whatsapp-btn .bi-whatsapp {
    font-size: 1.2em;
    line-height: 1;
}
/* /expo landing page sections. Composes with base.html site styles
   (real navbar/footer + Bootstrap .container come from base). */
.cc-expo-hero { background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%); color: #fff; padding: 64px 0; text-align: center; }
.cc-expo-hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 16px; }
.cc-expo-hero-sub { font-size: 1.05rem; opacity: .92; max-width: 720px; margin: 0 auto 28px; }
.cc-expo-section { padding: 48px 0; }
.cc-expo-section-alt { background: #f7fafc; }
.cc-expo-h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 20px; color: #1a365d; }
.cc-expo-ack { font-size: 1.05rem; line-height: 1.6; max-width: 760px; margin: 0 auto; text-align: center; }
.cc-expo-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cc-expo-cap h2 { color: #2b6cb0; margin: 0 0 8px; font-size: 1.15rem; }
.cc-expo-cap p { margin: 0; line-height: 1.55; }
/* Proof/impact band reuses the site's .cc-section-dark + .cc-stat-* classes
   (yellow #f6d55c accent), same as the main landing page. No custom CSS. */
.cc-expo-shots img { width: 100%; height: auto; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 20px; }
.cc-expo-tools { margin-top: 8px; }
.cc-expo-tool { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; height: 100%; }
.cc-expo-tool-icon { font-size: 1.4rem; color: #2b6cb0; flex-shrink: 0; line-height: 1.2; }
.cc-expo-tool-title { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; color: #1a365d; line-height: 1.3; }
.cc-expo-tool-desc { margin: 0; color: #4a5568; font-size: .92rem; line-height: 1.45; }
.cc-expo-tools-more { text-align: center; margin: 22px 0 0; color: var(--cc-gray-600); font-style: italic; font-size: .95rem; }
.cc-expo-or { display: flex; align-items: center; gap: 14px; color: #a0aec0; font-size: .9rem; margin: 8px 0 20px; }
.cc-expo-or::before, .cc-expo-or::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.cc-expo-btn { display: inline-block; font-weight: 700; padding: 12px 22px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer; }
.cc-expo-btn-primary { background: #2b6cb0; color: #fff; }
.cc-expo-btn-primary:hover { background: #1a365d; color: #fff; }
.cc-expo-secondary a { color: #2b6cb0; }
/* Visible input borders for public lead forms (expo, home, contacto).
   The public base does not ship Bootstrap's .form-control border. */
.cc-expo-form .form-control,
.cc-lead-form .form-control {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  font-size: 16px;
}
.cc-expo-form .form-control:focus,
.cc-lead-form .form-control:focus {
  border-color: #2b6cb0;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, .15);
}
.cc-expo-form textarea.form-control,
.cc-lead-form textarea.form-control { min-height: 110px; resize: vertical; }
.cc-expo-form .form-label,
.cc-lead-form .form-label { font-weight: 600; }
/* =============================================================================
   PRIVACY POLICY STYLES
   ============================================================================= */
.cc-privacy-policy {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--cc-shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.cc-privacy-title {
    color: var(--cc-primary-dark);
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.cc-privacy-title i {
    color: var(--cc-accent-yellow);
    margin-right: 0.75rem;
}

.cc-privacy-update {
    text-align: center;
    padding: 1rem;
    background: var(--cc-gray-50);
    border-radius: 0.5rem;
    border-left: 4px solid var(--cc-accent-yellow);
}

.cc-privacy-intro {
    background: var(--cc-gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.cc-privacy-intro p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cc-privacy-section {
    border-bottom: 1px solid var(--cc-gray-200);
    padding-bottom: 2rem;
}

.cc-privacy-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cc-privacy-section-title {
    color: var(--cc-primary-dark);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.cc-privacy-section-title i {
    color: var(--cc-accent-yellow);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.cc-privacy-subtitle {
    color: var(--cc-gray-700);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
}

.cc-privacy-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.cc-privacy-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.cc-privacy-list li::before {
    content: "•";
    color: var(--cc-accent-yellow);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.cc-privacy-list li strong {
    color: var(--cc-primary-dark);
    font-weight: 600;
}

.cc-privacy-link {
    color: var(--cc-primary-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cc-privacy-link:hover {
    color: var(--cc-primary-dark);
    text-decoration: underline;
}

.cc-privacy-contact {
    background: var(--cc-gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--cc-primary-main);
    margin-top: 1rem;
}

.cc-privacy-contact p {
    margin-bottom: 0.5rem;
}

.cc-privacy-contact p:last-child {
    margin-bottom: 0;
}

.cc-privacy-contact i {
    color: var(--cc-primary-main);
    margin-right: 0.5rem;
}

/* Responsive adjustments for privacy policy */
@media (max-width: 768px) {
    .cc-privacy-policy {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .cc-privacy-title {
        font-size: 2rem;
    }
    
    .cc-privacy-intro {
        padding: 1.5rem;
    }
    
    .cc-privacy-section-title {
        font-size: 1.25rem;
    }
    
    .cc-privacy-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .cc-privacy-policy {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cc-privacy-title {
        font-size: 1.75rem;
    }
    
    .cc-privacy-intro {
        padding: 1rem;
    }
    
    .cc-privacy-list li {
        padding-left: 1.25rem;
    }
} /* =============================================================================
   BOOTSTRAP OVERRIDES - Minimal, high-specificity changes only
   ============================================================================= */

/* Override Bootstrap's default focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 108, 176, 0.25) !important;
}

/* Ensure dropdown menus have proper z-index */
.dropdown-menu {
    z-index: var(--z-dropdown) !important;
}

/* Override Bootstrap's default button focus outline */
.btn:focus {
    outline: none !important;
}

/* Ensure form controls have consistent height */
.form-control,
.form-select,
.btn {
    height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Override Bootstrap's default table hover */
.table-hover tbody tr:hover {
    background-color: var(--cc-gray-50) !important;
} 