/* ============================================================
   CayenaSOFT — Sistema de diseño compartido (tema oscuro / claro)
   Enlaza este archivo desde cualquier vista con:
     <link rel="stylesheet" href="{{ asset('css/cs-theme.css') }}">
   y envuelve el contenido que quieras "temeado" en:
     <div class="cs-themed"> ... </div>
   ============================================================ */
 
/* ====================== Variables: tema oscuro (por defecto) ======================
   El fondo oscuro usa los MISMOS tonos que tu style.css ya usa en el footer y en
   la franja de contacto (#111111 y #1A191D) — así el modo oscuro se siente parte
   del mismo sistema de diseño, no un tema inventado aparte. */
.cs-themed {
    --primary: #c01120;
    --primary-light: #e8203a;
    --primary-dark: #7a0c17;
 
    --background: #111111;
    --background-secondary: #1A191D;
    --surface: #201f23;
    --surface-light: #29282d;
 
    --white: #FFFFFF;
    --text: #F4F4F4;
    --text-muted: #a8a8ac;
    --border: rgba(255, 255, 255, 0.08);
 
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 0 1px rgba(192, 17, 32, 0.35), 0 16px 40px rgba(192, 17, 32, 0.18);
    --glow-a: rgba(192, 17, 32, 0.10);
    --glow-b: rgba(192, 17, 32, 0.07);
    --icon-bg: rgba(192, 17, 32, 0.14);
 
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
 
    --font-sans: 'Inter', 'Segoe UI', Arial, sans-serif;
    --font-display: 'Manrope', 'Segoe UI', Arial, sans-serif;
 
    --transition: 0.25s ease;
}
 
/* ====================== Variables: tema claro ======================
   En modo claro se queda prácticamente igual a tu diseño original: fondo
   blanco, tarjetas blancas, texto #222429 (el mismo gris oscuro que ya usan
   tus encabezados) y texto secundario #777777 (el mismo gris que usa tu
   body { color: #777777 }). Así el "modo claro" ES tu sitio de siempre. */
html[data-cs-theme="light"] .cs-themed {
    --primary-light: #c01120;
 
    --background: #ffffff;
    --background-secondary: #F9F9F9;
    --surface: #ffffff;
    --surface-light: #F4F4F4;
 
    --text: #222429;
    --text-muted: #777777;
    --border: rgba(34, 36, 41, 0.1);
 
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.14);
    --shadow-glow: 0 0 0 1px rgba(192, 17, 32, 0.45), 0 16px 40px rgba(192, 17, 32, 0.16);
    --glow-a: rgba(192, 17, 32, 0.06);
    --glow-b: rgba(192, 17, 32, 0.04);
    --icon-bg: rgba(192, 17, 32, 0.1);
}
 
/* ====================== Base de las secciones rediseñadas ====================== */
.cs-themed {
    background: var(--background);
    color: var(--text);
    font-family: var(--font-sans);
    transition: background var(--transition), color var(--transition);
}
 
.cs-themed img {
    max-width: 100%;
    height: auto;
}
 
/* ====================== Switch de tema (flotante) ====================== */
.cs-theme-switch {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid rgba(192, 17, 32, 0.45);
    background: #17212B;
    color: #F8FAFC;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
 
.cs-theme-switch:hover {
    transform: translateY(-2px);
}
 
.cs-theme-switch:focus-visible {
    outline: 2px solid #e8203a;
    outline-offset: 3px;
}
 
.cs-theme-switch .cs-switch-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #c01120;
    flex-shrink: 0;
}
 
.cs-theme-switch .cs-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: #c01120;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    transition: transform 0.25s ease;
}
 
html[data-cs-theme="light"] .cs-theme-switch {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}
 
html[data-cs-theme="light"] .cs-theme-switch .cs-switch-thumb {
    transform: translateX(20px);
}
 
/* ====================== Hero / Slider ====================== */
.cs-themed .factura-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 20px 0;
    box-sizing: border-box;
}
 
.cs-themed .slide-container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 7;
    max-height: 560px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}
 
.cs-themed .slide {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    min-width: 0 !important;
    height: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}
 
.cs-themed .slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
 
.cs-themed .factura-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0;
}
 
/* ====================== Características (slider de tarjetas) ====================== */
.cs-themed .factura-caracteristicas {
    margin: 0 auto;
    max-width: 1180px;
    padding: 64px 20px 8px;
    text-align: center;
    box-sizing: border-box;
}
 
.cs-themed .caracteristicas-title {
    font-size: 28px;
    font-family: var(--font-display);
    color: var(--text);
    margin: 0 0 32px;
    font-weight: 800;
}
 
.cs-feat {
    position: relative;
}
 
.cs-feat-viewport {
    overflow: hidden;
    padding: 6px 2px 14px;
    margin: 0 -2px;
}
 
.cs-feat-track {
    display: flex;
    gap: 18px;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}
 
.cs-feat-card {
    flex: 0 0 calc((100% - (var(--per-view, 3) - 1) * 18px) / var(--per-view, 3));
    box-sizing: border-box;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px 24px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
 
.cs-feat-card:hover {
    border-color: rgba(192, 17, 32, 0.4);
    box-shadow: var(--shadow-md);
}
 
.cs-feat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--icon-bg);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
    flex-shrink: 0;
}
 
.cs-feat-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
}
 
.cs-feat-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.cs-feat-card li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-muted);
}
 
.cs-feat-card li:last-child {
    margin-bottom: 0;
}
 
.cs-feat-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 13px;
}
 
.cs-feat-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}
 
.cs-feat-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
 
.cs-feat-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
 
.cs-feat-btn:focus-visible,
.cs-feat-dot:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}
 
.cs-feat-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
 
.cs-feat-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    cursor: pointer;
    transition: width var(--transition), opacity var(--transition), background var(--transition);
}
 
.cs-feat-dot.active {
    width: 26px;
    border-radius: 999px;
    background: var(--primary);
    opacity: 1;
}
 
/* ====================== Planes ====================== */
.cs-themed .plans-wrapper {
    margin: 0;
    padding: 56px 20px 72px;
    background:
        radial-gradient(circle at 18% 15%, var(--glow-a), transparent 45%),
        radial-gradient(circle at 85% 0%, var(--glow-b), transparent 42%),
        var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
 
/* ✅ flex-wrap: nowrap = las tarjetas NUNCA pasan a una fila nueva, pase lo
   que pase (aunque la pantalla sea angosta): se encogen en lugar de apilarse.
   align-items: stretch iguala la altura de todas las tarjetas de la fila. */
.cs-themed .plans-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 10px 4px 20px;
    justify-content: center;
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
 
.cs-themed .plan-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 0;
    min-width: 128px;
    max-width: 250px;
}
 
.cs-themed .plan-group>a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
 
.cs-themed .plan-box {
    position: relative;
    width: 100%;
    min-height: 390px;
    height: 100%;
    flex: 1 1 auto;
    padding: 30px 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-light), var(--surface));
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-sans);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    cursor: default;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}
 
.cs-themed .plan-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0.5;
    transition: opacity var(--transition);
}
 
.cs-themed .plan-box:hover {
    transform: translateY(-6px);
    border-color: rgba(192, 17, 32, 0.4);
    box-shadow: var(--shadow-lg);
}
 
.cs-themed .plan-box:hover::before {
    opacity: 1;
}
 
.cs-themed .plan-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
 
/* ✅ Tamaño reducido + sin salto de línea: un total anual (número más largo)
   ya no se parte en dos líneas y desbalancea la altura de esa tarjeta. */
.cs-themed .plan-price {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.15;
    white-space: nowrap;
}
 
.cs-themed .plan-benefits {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--text-muted);
    margin: 18px 0 14px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
 
.cs-themed .plan-extra {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0.85;
}
 
.cs-themed .plan-featured {
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-glow);
}
 
.cs-themed .plan-featured::before {
    opacity: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
 
.cs-themed .plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--white);
    background: var(--primary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
}
 
.cs-themed .plan-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
 
.cs-themed .plan-buttons a.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(192, 17, 32, 0.35);
    color: var(--primary-light);
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}
 
.cs-themed .plan-buttons a.btn-icon i {
    font-size: 16px;
}
 
.cs-themed .plan-buttons a.btn-icon:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
 
/* ====================== Switch de periodo (mensual / anual) ====================== */
.cs-period-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 28px;
}
 
.cs-period-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
 
.cs-period-btn.active {
    background: var(--primary);
    color: var(--white);
}
 
.plans-dynamic-slot {
    display: contents;
}
 
.plan-loading,
.plan-empty {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 24px 0;
}
 
/* ====================== Video ====================== */
.cs-themed .video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 20px 72px;
    background: var(--background);
}
 
.cs-themed .video-card {
    width: 520px;
    max-width: 100%;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-light), var(--surface));
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-sans);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}
 
.cs-themed .video-card:hover {
    border-color: rgba(192, 17, 32, 0.3);
    box-shadow: var(--shadow-lg);
}
 
.cs-themed .video-header {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}
 
.cs-themed .video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
}
 
.cs-themed .video-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}
 
.cs-themed .video-card.closed .video-frame {
    max-height: 0;
    opacity: 0;
    margin: 0;
}
 
.cs-themed .video-card.closed .video-header::after {
    content: " (cerrado — clic para abrir)";
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.6;
}
 
/* ====================== Responsive ====================== */
@media (max-width: 700px) {
    /* ✅ Las tarjetas se encogen (nunca se apilan): menos relleno y letra
       más chica para que quepan varias lado a lado en pantallas angostas. */
    .cs-themed .plan-box {
        padding: 18px 14px;
        min-height: 340px;
    }
 
    .cs-themed .plan-title {
        font-size: 10.5px;
    }
 
    .cs-themed .plan-price {
        font-size: 19px;
    }
 
    .cs-themed .plan-benefits {
        font-size: 11px;
        line-height: 1.55;
        margin: 12px 0 10px;
        padding-top: 10px;
    }
 
    .cs-themed .plan-extra {
        font-size: 10.5px;
    }
 
    .cs-themed .plans-container {
        gap: 8px;
    }
 
    .cs-theme-switch .cs-switch-label {
        display: none;
    }
 
    .cs-theme-switch {
        padding: 6px;
    }
}
 
@media (prefers-reduced-motion: reduce) {
 
    .cs-themed *,
    .cs-theme-switch,
    .cs-theme-switch * {
        transition: none !important;
    }
}
 
/* ============================================================
   ACENTO EXTRA — un tono ámbar además del rojo de marca, para que
   contadores y detalles de equipo no queden "todo rojo". Es parte
   de la paleta de color, igual que las variables de arriba.
   ============================================================ */
.cs-themed {
    --accent: #F2A541;
}
 
html[data-cs-theme="light"] .cs-themed {
    --accent: #D98C1F;
}
 
/* ============================================================
   PÁGINA DE INICIO — SOLO COLOR
   Nada de paddings, márgenes, tamaños de letra, iconos, bordes
   redondeados ni animaciones nuevas: únicamente se repintan los
   colores (fondo, texto, bordes) para que combinen con el tema
   oscuro/claro. El tamaño y la distribución de cada sección los
   sigue controlando tu style.css de siempre, sin tocar.
   ============================================================ */
 
/* ----- "Nuestras razones" -----
   La franja completa (.features_bg) y cada tarjeta son blancas en tu
   diseño real, con una línea divisoria gris entre ellas. Replico la
   cadena de clases exacta de tu style.css (con .cs-themed delante)
   para tener más especificidad que la regla original y que el color
   sí se note — antes mi selector era más corto que el tuyo y perdía
   siempre, por eso no cambiaba nada. */
.cs-themed .securtv_features_area {
    background: var(--background-secondary);
}
 
.cs-themed .features_bg {
    box-shadow: var(--shadow-sm);
}
 
.cs-themed .features_bg .em-service2.sleft.all_color_service {
    background: var(--surface);
    border-right: 1px solid var(--border);
}
 
.cs-themed .features_bg .all_color_service p {
    color: var(--text-muted);
}
 
.cs-themed .features_bg .all_color_service h3 a {
    color: var(--text);
}
 
/* ----- Publicidad -----
   La tarjeta de texto (witr_content_pslide_text) es blanca y flotante
   sobre la imagen — esa es la que hay que recolorear, no el contenedor
   de la imagen (ese se queda intacto, es la foto). */
.cs-themed .securtv_serivce_area {
    background: var(--background);
}
 
.cs-themed .securtv_serivce_area .witr_section_title_inner h2 {
    color: var(--text);
}
 
.cs-themed .ps3.ps1 .witr_content_pslide_text {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
 
.cs-themed .ps3.ps1 .witr_content_pslide_text p,
.cs-themed .ps3.ps1 .witr_content_pslide_text h3,
.cs-themed .ps3.ps1 .witr_content_pslide_text a {
    color: var(--text);
}
 
.cs-themed .ps3.ps1 .witr_content_pslide_text a:hover {
    color: var(--primary-light);
}
 
/* ----- "Nuestro servicio" -----
   La tarjeta (.em-service) también es blanca de origen, sin imagen de
   fondo — segura para recolorear. El ícono ya es rojo de marca en tu
   CSS original y se ve bien en los dos temas, así que no lo toco. */
.cs-themed .securtv_serivce_bg_area {
    background: var(--background-secondary);
}
 
.cs-themed .securtv_serivce_bg_area .witr_section_title_inner h2,
.cs-themed .securtv_serivce_bg_area .witr_section_title_inner h3 {
    color: var(--text);
}
 
.cs-themed .serivce_bg .em-service.all_color_service {
    background: var(--surface);
}
 
.cs-themed .serivce_bg .em-service-title h3 a {
    color: var(--text);
}
 
/* ----- Equipo -----
   .witr_team_content4 es la franja blanca con nombre y cargo debajo
   de la foto — blanca de origen, segura para recolorear. El nombre de
   la primera tarjeta trae "style=color:red" en línea; con !important
   en el span sí lo gana (el cargo pasa a texto secundario del tema). */
.cs-themed .securtv_team_area {
    background: var(--background);
}
 
.cs-themed .securtv_team_area .witr_section_title_inner h2,
.cs-themed .securtv_team_area .witr_section_title_inner h3 {
    color: var(--text);
}
 
.cs-themed .witr_team_content4.all_content_bg_color {
    background: var(--surface);
}
 
.cs-themed .witr_team_content4 h5 a {
    color: var(--text);
}
 
.cs-themed .witr_team_content4 span {
    color: var(--text-muted) !important;
}
 
/* ----- Contadores -----
   El fondo visible real está en ".counter_bg" (una tarjeta blanca que
   flota encima, no en ".securtv_counter_area" que es solo el
   contenedor). Los números ya usan el mismo gris oscuro que mi
   variable --text en modo claro, así que coinciden exactamente. */
.cs-themed .counter_bg {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
 
.cs-themed .counter_bg .all_counter_color h3,
.cs-themed .counter_bg .all_counter_color span {
    color: var(--text);
}
 
.cs-themed .counter_bg .all_counter_color h4 {
    color: var(--text-muted);
}
 
/* ----- Método de trabajo -----
   OJO: la primera tarjeta ("SOPORTE TECNICO") ya tiene una foto de
   fondo (work-img-1.jpg) con texto blanco fijo en tu style.css — por
   eso NO se toca nada de esa tarjeta, cambiarla rompía la foto. Las
   otras tres tarjetas (witr_feature_13) no tienen fondo propio, el
   texto queda directo sobre el fondo de la sección: solo hay que
   aclarar el texto oscuro (h2) para que no desaparezca en oscuro. */
.cs-themed .securtv_work_area {
    background: var(--background-secondary);
}
 
.cs-themed .securtv_work_area .witr_section_title_inner h3 {
    color: var(--text);
}
 
.cs-themed .work_area .all_feature_color h2 {
    color: var(--text);
}
 
/* ----- Testimonios -----
   La sección entera tiene una foto de fondo (testimonial-bg-img.jpg)
   con el nombre del cliente ya en blanco por diseño — no se toca nada
   de eso. Lo único blanco "de verdad" es la tarjeta de la cita
   (.testiCreCon), así que es la única que se recolorea. */
.cs-themed .carso_idtesti .testiCreCon {
    background: var(--surface);
}
 
.cs-themed .carso_idtesti .testiCreCon:after {
    background: var(--surface);
}
 
.cs-themed .carso_idtesti .testiCreCon p {
    color: var(--text);
}
 
.cs-themed .carso_idtesti .testiCreCon i {
    color: var(--primary-light);
}
 
.cs-themed .slick-prev.slick-arrow,
.cs-themed .slick-next.slick-arrow {
    color: var(--text);
}
 
/* ============================================================
   DESCARGAS / PREGUNTAS FRECUENTES / DOCUMENTACIÓN
   Aquí sí hay modernización real (tarjetas, acordeón, hover,
   tabla) tal como pediste — no es solo color.
   ============================================================ */
.cs-themed .card {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
 
.cs-themed .card-header {
    background: var(--surface-light);
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
 
.cs-themed .card-header.bg-info {
    background: var(--primary) !important;
    border-color: var(--primary);
    color: #fff;
}
 
.cs-themed .card-header .success {
    color: var(--primary-light);
    font-weight: 700;
}
 
.cs-themed .btn-link {
    color: var(--text);
}
 
.cs-themed .btn-link:hover {
    color: var(--primary-light);
}
 
.cs-themed .alert-message-success {
    background: var(--surface-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}
 
.cs-themed .alert-message-success p,
.cs-themed .alert-message-success strong {
    color: var(--text-muted);
}
 
.cs-themed .text-primary {
    color: var(--primary-light) !important;
}
 
.cs-themed table.table {
    color: var(--text);
    background: var(--surface);
}
 
.cs-themed table.table thead th {
    background: var(--surface-light);
    color: var(--text);
    border-color: var(--border);
}
 
.cs-themed table.table td,
.cs-themed table.table th {
    border-color: var(--border);
}
 
.cs-themed table.table-striped tbody tr:nth-of-type(odd) {
    background: var(--background-secondary);
}
 
.cs-themed .dataTables_wrapper,
.cs-themed .dataTables_wrapper label,
.cs-themed .dataTables_wrapper .dataTables_info,
.cs-themed .dataTables_wrapper .dataTables_length,
.cs-themed .dataTables_wrapper .dataTables_filter,
.cs-themed .dataTables_wrapper .dataTables_paginate {
    color: var(--text);
}
 
.cs-themed .dataTables_wrapper input,
.cs-themed .dataTables_wrapper select {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
 
.cs-themed .dataTables_wrapper .page-item .page-link {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
 
.cs-themed .dataTables_wrapper .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
 
.cs-themed .collapse .card-body a {
    color: var(--primary-light);
}
 
.cs-themed .collapse .card-body h3.text-primary {
    font-family: var(--font-display);
}
 
.cs-themed .card.border-primary {
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md);
}
 
.cs-themed .alert-message-success {
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
 
.cs-themed .alert-message-success:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent);
}
 
.cs-themed .alert-message-success h4 {
    color: var(--primary-light) !important;
    font-family: var(--font-display);
    font-weight: 800 !important;
}
 
.cs-themed .alert-message-success a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
}
 
.cs-themed .alert-message-success a:hover {
    color: var(--primary-light);
}
 
.cs-themed [data-toggle="collapse"] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 6px 4px;
}
 
.cs-themed [data-toggle="collapse"]::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    color: var(--text-muted);
    transition: transform .3s ease;
}
 
.cs-themed [data-toggle="collapse"][aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: var(--primary-light);
}
 
.cs-themed .collapse .card-body li {
    border-bottom: 1px solid var(--border);
    padding-top: 6px;
}
 
.cs-themed .collapse .card-body li:last-child {
    border-bottom: none;
}
 
.cs-themed table.table td,
.cs-themed table.table th {
    padding: 14px 16px;
    vertical-align: top;
}
 
.cs-themed table.table tbody tr {
    transition: background var(--transition);
}
 
.cs-themed table.table tbody tr:hover {
    background: var(--surface-light) !important;
}
 
/* ----- Tarjetas de descarga (página Descargas) -----
   Reemplaza la lista plana de .alert-message-success por una grilla de
   tarjetas: ícono, título, descripción y un botón tipo píldora con el
   peso del archivo. Se eleva levemente al pasar el mouse. */
.cs-themed .cs-dl-section {
    padding: 56px 0 72px;
}
 
.cs-themed .cs-dl-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}
 
.cs-themed .cs-dl-heading-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-sm);
}
 
.cs-themed .cs-dl-heading h2 {
    margin: 0;
    font-size: 25px;
    font-family: var(--font-display);
    color: var(--text);
    text-transform: none;
}
 
.cs-themed .cs-dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}
 
.cs-themed .cs-dl-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px 22px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
 
.cs-themed .cs-dl-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
 
.cs-themed .cs-dl-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--icon-bg);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 16px;
}
 
.cs-themed .cs-dl-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    text-transform: none;
}
 
.cs-themed .cs-dl-card p {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.55;
    flex-grow: 1;
}
 
.cs-themed .cs-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: background var(--transition);
}
 
.cs-themed .cs-dl-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}
 
/* Modo claro: gris más oscuro (#DEE3EA) para todas las .cs-dl-card
   + borde fino + sombra suave */
html[data-cs-theme="light"] .cs-themed .cs-dl-card {
    background: #DEE3EA;
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
}
 
html[data-cs-theme="light"] .cs-themed .cs-dl-card:hover {
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg);
}
 
/* Sobre ese gris el texto secundario se oscurece un poco para que se lea siempre */
html[data-cs-theme="light"] .cs-themed .cs-dl-card p {
    color: #4b4f58;
}
 
/* Modo claro: mismo gris (#DEE3EA) en las cajas de Factura Electrónica
   (tarjetas de características y planes) */
html[data-cs-theme="light"] .cs-themed .cs-feat-card,
html[data-cs-theme="light"] .cs-themed .plan-box {
    background: #DEE3EA;
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
}
 
html[data-cs-theme="light"] .cs-themed .cs-feat-card:hover,
html[data-cs-theme="light"] .cs-themed .plan-box:hover {
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg);
}
 
html[data-cs-theme="light"] .cs-themed .plan-featured {
    box-shadow: var(--shadow-glow);
}
 
html[data-cs-theme="light"] .cs-themed .cs-feat-card li,
html[data-cs-theme="light"] .cs-themed .plan-benefits,
html[data-cs-theme="light"] .cs-themed .plan-extra,
html[data-cs-theme="light"] .cs-themed .plan-title {
    color: #4b4f58;
}
 
.cs-themed .cs-dl-btn small {
    font-weight: 400;
    opacity: .85;
    margin-left: 2px;
}
 
/* ============================================================
   MODO CLARO — PÁGINA DE INICIO
   Mismo tratamiento que ya se ve bien en Factura Electrónica:
   las tarjetas pasan de blanco sobre blanco a gris #DEE3EA con
   borde fino interno + sombra suave, y el texto secundario se
   oscurece (#4b4f58) para que se lea sobre ese gris.
   Solo afecta al modo claro; el modo oscuro no se toca.
   ============================================================ */
 
/* ----- Nuestras razones ----- */
html[data-cs-theme="light"] .cs-themed .features_bg {
    box-shadow: var(--shadow-md);
}
 
html[data-cs-theme="light"] .cs-themed .features_bg .em-service2.sleft.all_color_service {
    background: #DEE3EA;
    border-right: 1px solid rgba(34, 36, 41, 0.14);
}
 
html[data-cs-theme="light"] .cs-themed .features_bg .all_color_service p {
    color: #4b4f58;
}
 
/* ----- Publicidad ----- */
html[data-cs-theme="light"] .cs-themed .ps3.ps1 .witr_content_pslide_text {
    background: #DEE3EA;
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md);
}
 
html[data-cs-theme="light"] .cs-themed .ps3.ps1 .witr_content_pslide_text p {
    color: #4b4f58;
}
 
/* ----- Nuestro servicio ----- */
html[data-cs-theme="light"] .cs-themed .serivce_bg .em-service.all_color_service {
    background: #DEE3EA;
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
}
 
html[data-cs-theme="light"] .cs-themed .serivce_bg .em-service.all_color_service:hover {
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg);
}
 
html[data-cs-theme="light"] .cs-themed .serivce_bg .em-service.all_color_service p {
    color: #4b4f58;
}
 
/* ----- Equipo ----- */
html[data-cs-theme="light"] .cs-themed .witr_team_content4.all_content_bg_color {
    background: #DEE3EA;
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
}
 
html[data-cs-theme="light"] .cs-themed .witr_team_content4 span {
    color: #4b4f58 !important;
}
 
/* ----- Contadores ----- */
html[data-cs-theme="light"] .cs-themed .counter_bg {
    background: #DEE3EA;
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md);
}
 
html[data-cs-theme="light"] .cs-themed .counter_bg .all_counter_color h4 {
    color: #4b4f58;
}
 
/* ----- Testimonios (tarjeta de la cita + su flechita) ----- */
html[data-cs-theme="light"] .cs-themed .carso_idtesti .testiCreCon {
    background: #DEE3EA;
    box-shadow: var(--shadow-md);
}
 
html[data-cs-theme="light"] .cs-themed .carso_idtesti .testiCreCon:after {
    background: #DEE3EA;
}
 
html[data-cs-theme="light"] .cs-themed .carso_idtesti .testiCreCon p {
    color: #2b2e35;
}
 
/* ============================================================
   PÁGINA DE INICIO — FORMAS MÁS SUAVES + "NUESTRO SERVICIO" PAREJO
   Todo va dentro de .cs-themed, así que el menú superior y el
   footer ("Acerca de", etc.) NO se tocan. Funciona en modo oscuro
   y claro porque solo usa variables del tema.
   ============================================================ */
 
/* ----- Nuestras razones: franja redondeada ----- */
.cs-themed .features_bg {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
 
.cs-themed .features_bg .em-service2.sleft.all_color_service:last-child {
    border-right: none;
}
 
/* ----- Nuestro servicio: todas las cajas del mismo tamaño ----- */
.cs-themed .serivce_bg .row {
    display: flex;
    flex-wrap: wrap;
}
 
.cs-themed .serivce_bg .row::before,
.cs-themed .serivce_bg .row::after {
    display: none;
}
 
.cs-themed .serivce_bg .row > [class*="col-"] {
    float: none;
    display: flex;
    padding-bottom: 24px;
}
 
.cs-themed .serivce_bg .em-service.all_color_service {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
 
.cs-themed .serivce_bg .em-service.all_color_service:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 17, 32, 0.4);
    box-shadow: var(--shadow-md);
}
 
/* si esa sección fuera un carrusel (owl), también iguala las alturas */
.cs-themed .serivce_bg .owl-stage {
    display: flex;
}
 
.cs-themed .serivce_bg .owl-item {
    display: flex;
}
 
.cs-themed .serivce_bg .owl-item .em-service.all_color_service {
    width: 100%;
}
 
/* ----- Publicidad ----- */
.cs-themed .ps3.ps1 .witr_content_pslide_text {
    border-radius: var(--radius-lg);
}
 
.cs-themed .securtv_serivce_area img {
    border-radius: var(--radius-lg);
}
 
/* ----- Equipo ----- */
.cs-themed .securtv_team_area .witr_team_content4.all_content_bg_color {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
 
.cs-themed .securtv_team_area img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
 
/* ----- Contadores ----- */
.cs-themed .counter_bg {
    border-radius: var(--radius-lg);
}
 
/* ----- Método de trabajo (la tarjeta con foto conserva su imagen) ----- */
.cs-themed .work_area .all_feature_color {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
 
/* ----- Testimonios ----- */
.cs-themed .carso_idtesti .testiCreCon {
    border-radius: var(--radius-lg);
}
 
/* ----- Botones de las secciones ----- */
.cs-themed .securtv_button a {
    border-radius: var(--radius-pill);
}
 
@media (max-width: 767px) {
    .cs-themed .serivce_bg .em-service.all_color_service {
        min-height: 0;
    }
}
