/* ==========================================================================
   SECCIONES CLARAS (diseño mixto)
   Cabecera de cada página en oscuro y contenido en claro para leer mejor.
   Se activa añadiendo la clase "ls-light" (y "ls-light-alt" para alternar)
   a cada <section> de contenido.
   ========================================================================== */
section.ls-light { background: #f4f7fb !important; background-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; color: #334155 !important; border-color: #e2e8f0 !important; position: relative; z-index: 10; }
section.ls-light.ls-light-alt { background: #ffffff !important; }

/* Títulos */
section.ls-light h1, section.ls-light h2, section.ls-light h3, section.ls-light h4, section.ls-light h5, section.ls-light h6,
section.ls-light .h1, section.ls-light .h2, section.ls-light .h3, section.ls-light .h4, section.ls-light .title,
section.ls-light .text-white, section.ls-light .text-orbitron, section.ls-light .c-white, section.ls-light .c-dark-blue,
section.ls-light .faq-title > a, section.ls-light .analisis-card-title { color: #0a1428 !important; text-shadow: none !important; }
section.ls-light .glow-text { text-shadow: none !important; }

/* Texto */
section.ls-light p, section.ls-light li, section.ls-light .lead, section.ls-light small, section.ls-light td, section.ls-light th,
section.ls-light label, section.ls-light .text-special, section.ls-light .text2, section.ls-light .tiny-text, section.ls-light .tiny-text2,
section.ls-light .c-dark-gray, section.ls-light .c-mid-gray, section.ls-light .analisis-card-desc, section.ls-light p.text-white, section.ls-light span.text-white,
section.ls-light [style*="color: #a8d9e8"], section.ls-light [style*="color:#a8d9e8"], section.ls-light [style*="color: #cbd5e1"],
section.ls-light [style*="color: #e2e8f0"], section.ls-light [style*="color: #f8fafc"], section.ls-light [style*="color: white"],
section.ls-light [style*="color:white"], section.ls-light [style*="color: #fff"], section.ls-light [style*="color:#fff"] { color: #475569 !important; }
section.ls-light strong, section.ls-light b, section.ls-light .weight-negrita { color: #0a1428 !important; }

/* Acentos */
section.ls-light .text-cyan, section.ls-light .hs-cyan, section.ls-light .c-primary-blue, section.ls-light .c-primary-blue-light,
section.ls-light .c-sky-blue, section.ls-light .texto__azul, section.ls-light a:not(.btn):not([class*="btn"]) { color: #0284c7 !important; }
section.ls-light .c-products, section.ls-light .texto__naranja, section.ls-light .c-secondary, section.ls-light .c-sky-orange,
section.ls-light .hs-orange { color: #ea7a1f !important; }

/* Tarjetas */
section.ls-light .quotation-glass-card, section.ls-light .glass-card, section.ls-light .card, section.ls-light .panel, section.ls-light .box,
section.ls-light .my-card, section.ls-light .analisis-card, section.ls-light .hs-card {
    background: #ffffff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border: 1px solid #dbe4ef !important; box-shadow: 0 6px 24px rgba(10, 20, 40, 0.06) !important; color: #475569 !important; }
section.ls-light .quotation-glass-card:hover, section.ls-light .glass-card:hover, section.ls-light .hs-card:hover {
    border-color: #0284c7 !important; box-shadow: 0 10px 32px rgba(2, 132, 199, 0.15) !important; }
section.ls-light .hp-btn-outline { color: #0a1428 !important; border-color: #0284c7 !important; }

/* Sin márgenes exteriores: el hueco entre secciones dejaría ver el fondo oscuro */
section.ls-light { margin-top: 0 !important; margin-bottom: 0 !important; }

/* Fondo claro a todo el ancho aunque la sección esté dentro de un contenedor más estrecho */
section.ls-light { box-shadow: 0 0 0 100vmax #f4f7fb !important; clip-path: inset(0 -100vmax); }
section.ls-light.ls-light-alt { box-shadow: 0 0 0 100vmax #ffffff !important; }

/* ==========================================================================
   FORMULARIOS EN CLARO (presupuesto, demo, contratar, contacto, pago…)
   Se activa con la clase "form-light" en la tarjeta o el <form>.
   ========================================================================== */
.form-light { background: #ffffff !important; background-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border: 1px solid #dbe4ef !important; border-radius: 18px !important; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important; color: #334155 !important; }
form.form-light { padding: 32px !important; }
.form-light h1, .form-light h2, .form-light h3, .form-light h4, .form-light h5, .form-light .text-white, .form-light strong, .form-light b { color: #0a1428 !important; text-shadow: none !important; }
.form-light p, .form-light li, .form-light small, .form-light span:not(.checkmark):not(.select2-selection__choice__remove), .form-light legend,
.form-light .text-special, .form-light .pay-legal, .form-light .pay-amount span { color: #475569 !important; }
.form-light label, .form-light .pay-label, .form-light .text-cyan, .form-light label.text-cyan { color: #0a1428 !important; font-weight: 600; }
.form-light a:not(.btn) , .form-light .pay-legal a { color: #0284c7 !important; }

/* Campos */
.form-light input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.form-light textarea, .form-light select, .form-light .form-control, .form-light .store-input-field, .form-light .dark-input, .form-light .pay-input {
    background: #ffffff !important; color: #0f172a !important; border: 1px solid #cbd5e1 !important; box-shadow: none !important; }
.form-light input:focus, .form-light textarea:focus, .form-light select:focus, .form-light .form-control:focus, .form-light .pay-input:focus {
    border-color: #0284c7 !important; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important; outline: none; }
.form-light ::placeholder { color: #94a3b8 !important; opacity: 1; }
.form-light select option { color: #0f172a; background: #ffffff; }

/* Errores de validación */
.form-light label.error, .form-light .error-message, .form-light .pay-field-error { color: #dc2626 !important; font-weight: 500; }
.form-light .form-control.error, .form-light input.error, .form-light textarea.error { border-color: #dc2626 !important; }

/* Desplegables con selección múltiple (select2) */
.form-light .select2-container--default .select2-selection--multiple,
.form-light .select2-container--default .select2-selection--single { background: #ffffff !important; border: 1px solid #cbd5e1 !important; }
.form-light .select2-container--default .select2-selection--single .select2-selection__rendered,
.form-light .select2-container--default .select2-selection--multiple .select2-selection__rendered { color: #0f172a !important; }
.form-light .select2-container--default .select2-selection--multiple .select2-selection__choice { background: #e0f2fe !important; border: 1px solid #bae6fd !important; color: #0a1428 !important; }
.form-light .select2-container--default .select2-search--inline .select2-search__field { color: #0f172a !important; }
body:has(.form-light) .select2-dropdown { background: #ffffff !important; border-color: #cbd5e1 !important; }
body:has(.form-light) .select2-container--default .select2-results__option { color: #0f172a !important; background: #ffffff !important; }
body:has(.form-light) .select2-container--default .select2-results__option--highlighted { background: #e0f2fe !important; color: #0a1428 !important; }

/* Casillas y opciones */
.form-light .checkbox-container-futurista .checkmark { background: #ffffff !important; border: 1px solid #94a3b8 !important; }
.form-light .checkbox-container-futurista input:checked ~ .checkmark { background: #0284c7 !important; border-color: #0284c7 !important; }
.form-light .checkbox-container-futurista, .form-light .checkbox-container-futurista span:not(.checkmark) { color: #334155 !important; }
.form-light .pay-method span { color: #334155 !important; border-color: #cbd5e1 !important; background: #ffffff; }
.form-light .pay-method input:checked + span { color: #0369a1 !important; border-color: #0284c7 !important; background: #e0f2fe !important; }
.form-light .pay-alert { color: #9a3412 !important; background: #fff7ed !important; border-color: #fdba74 !important; }

/* Mayor prioridad que los estilos de cada página (products.css se carga después) y por encima de los adornos de fondo */
.form-light.form-light, .form-light.quotation-glass-card { background: #ffffff !important; border: 1px solid #dbe4ef !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.form-light { position: relative; z-index: 20; }

/* Ventanas emergentes que contienen un formulario claro (p. ej. contacto) */
.modal-content:has(.form-light) { background: #ffffff !important; color: #334155 !important; border-color: #dbe4ef !important; }
.modal-content:has(.form-light) .modal-header, .modal-content:has(.form-light) .modal-body { background: #ffffff !important; border-color: #e2e8f0 !important; }
.modal-content:has(.form-light) .modal-title, .modal-content:has(.form-light) .modal-title * { color: #0a1428 !important; }
.modal-content:has(.form-light) .close, .modal-content:has(.form-light) .close span { color: #0a1428 !important; opacity: .7; text-shadow: none; }
.modal-content .form-light { box-shadow: none !important; border: 0 !important; }

/* ==========================================================================
   CALENDARIO DE WEBINARS EN CLARO
   ========================================================================== */
.cal-light.cal-light { background: #ffffff !important; border: 1px solid #dbe4ef !important; border-radius: 18px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.cal-light #calendar, .cal-light .fc, .cal-light .fc-theme-standard, .cal-light .fc-scroller, .cal-light .fc-daygrid-day { background-color: #ffffff !important; }
.cal-light .fc-theme-standard td, .cal-light .fc-theme-standard th, .cal-light .fc-theme-standard .fc-scrollgrid,
.cal-light .fc-daygrid-day, .cal-light .fc-col-header-cell { border-color: #e2e8f0 !important; }
.cal-light .fc-toolbar-title { color: #0a1428 !important; text-transform: capitalize; }
.cal-light .fc-col-header-cell-cushion, .cal-light th { color: #0284c7 !important; }
.cal-light .fc-daygrid-day-number, .cal-light #calendar a.fc-daygrid-day-number { color: #0a1428 !important; }
.cal-light .fc-day-other .fc-daygrid-day-number { color: #94a3b8 !important; }
.cal-light .fc-day-today { background-color: #f0f9ff !important; }
.cal-light .fc .fc-button, .cal-light .fc-prev-button, .cal-light .fc-next-button { color: #0a1428 !important; border-color: #cbd5e1 !important; background: #ffffff !important; }
/* Evento: hora y título debajo del número del día */
.fc-daygrid-event .fc-wb { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; white-space: normal; overflow: hidden; }
.fc-daygrid-event .fc-wb-time { font-weight: 700; font-size: 11.5px; }
.fc-daygrid-event .fc-wb-title { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-light .fc-daygrid-event, .cal-light .fc-daygrid-event * { color: #7c2d12 !important; }
.cal-light .fc-daygrid-event.expired, .cal-light .fc-daygrid-event.expired * { color: #475569 !important; }
@media (max-width: 446px), (min-width: 768px) and (max-width: 992px) { .fc-daygrid-event .fc-wb-title { display: none; } }
section.ls-light .text-light-blue { color: #475569 !important; }
section.ls-light .timeline-badge { color: #0284c7 !important; }
