/* =====================================================
   TEMA BLANCO — se carga solo si el administrador lo activa
   en /admin/apariencia. No toca las portadas con foto,
   el pie de página ni el afiche de descuento.
   ===================================================== */
html:root body.tema-claro {
    background-color: #ffffff !important;
    color: #475569;
}

/* Secciones */
body.tema-claro .bg-pomelia-light { background-color: #ffffff !important; }
body.tema-claro .bg-pomelia-soft  { background-color: #ffffff !important; }

/* Tarjetas y línea de tiempo */
body.tema-claro main .bg-card-pomelia {
    background-color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
}
body.tema-claro main .border-soft { border-color: #cbd5e1 !important; }

/* Letras dentro de las secciones blancas */
body.tema-claro .bg-pomelia-light .text-white,
body.tema-claro .bg-pomelia-soft .text-white,
body.tema-claro .bg-pomelia-light .section-title-light,
body.tema-claro .bg-pomelia-soft .section-title-light,
body.tema-claro .bg-pomelia-light .text-dark,
body.tema-claro .bg-pomelia-soft .text-dark { color: #475569 !important; }

body.tema-claro .bg-pomelia-light .text-white-50,
body.tema-claro .bg-pomelia-soft .text-white-50 { color: #64748b !important; }

html:root body.tema-claro .bg-pomelia-light .text-muted-pomelia,
html:root body.tema-claro .bg-pomelia-soft .text-muted-pomelia,
body.tema-claro .bg-pomelia-light .current-status-title,
body.tema-claro .bg-pomelia-soft .current-status-title,
body.tema-claro .bg-pomelia-light .status-text,
body.tema-claro .bg-pomelia-soft .status-text,
body.tema-claro .bg-pomelia-light .team-title,
body.tema-claro .bg-pomelia-soft .team-title,
body.tema-claro .bg-pomelia-light .team-description,
body.tema-claro .bg-pomelia-soft .team-description { color: #475569 !important; }

body.tema-claro .bg-pomelia-light .team-title,
body.tema-claro .bg-pomelia-soft .team-title,
body.tema-claro .bg-pomelia-light .current-status-title,
body.tema-claro .bg-pomelia-soft .current-status-title { color: #475569 !important; }

/* Formulario de contacto */
body.tema-claro .border-gradient-purple {
    background-color: #ffffff !important;
    border: 1px solid rgba(124, 58, 237, 0.55) !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08) !important;
}
body.tema-claro #contactForm .custom-input-pomelia,
body.tema-claro #contactForm .custom-input-pomelia:focus {
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #a9b6c8 !important;
}
body.tema-claro #contactForm .custom-input-pomelia:focus { border-color: #00b4d8 !important; }
body.tema-claro #contactForm .custom-input-pomelia::placeholder { color: #94a3b8 !important; }

/* ---------- Textos e iconos que quedaban invisibles en blanco ---------- */
/* Frase "Creemos que detrás de cada gran solución…" (tenía color gris claro fijo) */
html:root body.tema-claro .bg-pomelia-light .fst-italic,
html:root body.tema-claro .bg-pomelia-soft .fst-italic { color: #334155 !important; }

/* Íconos claros (Soporte Técnico, equipo): fondo y símbolo oscuros */
body.tema-claro .bg-dark-dim { background-color: rgba(15, 23, 42, 0.12) !important; }
body.tema-claro .bg-pomelia-light .text-light,
body.tema-claro .bg-pomelia-soft .text-light { color: #475569 !important; }

/* Contornos de tarjetas y fases más marcados */
body.tema-claro main .border-cyan-dim   { border: 1px solid rgba(0, 180, 216, 0.75) !important; }
body.tema-claro main .border-purple-dim { border: 1px solid rgba(124, 58, 237, 0.65) !important; }
body.tema-claro main .border-sunset-dim { border: 1px solid rgba(249, 115, 22, 0.75) !important; }
body.tema-claro main .border-soft       { border: 1px solid #64748b !important; }

/* Puntos de la línea de tiempo y etiquetas "Fase" (no tenían color de relleno) */
body.tema-claro .timeline-dot-pomelia {
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.25);
}
body.tema-claro .timeline-dot-pomelia.bg-cyan,
body.tema-claro .badge.bg-cyan   { background-color: #00b4d8 !important; }
body.tema-claro .timeline-dot-pomelia.bg-purple,
body.tema-claro .badge.bg-purple { background-color: #7c3aed !important; }
body.tema-claro .timeline-dot-pomelia.bg-sunset,
body.tema-claro .badge.bg-sunset { background-color: #f97316 !important; }
body.tema-claro .timeline-dot-pomelia.bg-dark { background-color: #94a3b8 !important; }
body.tema-claro .timeline-pomelia::before { width: 3px; }

/* =====================================================
   AFICHE DE DESCUENTO en blanco (sigue el fondo elegido)
   ===================================================== */
html:root body.tema-claro .afiche-card { background: #ffffff !important; box-shadow: 0 12px 50px rgba(15, 23, 42, 0.35); }
html:root body.tema-claro .afiche-form-panel { background: #ffffff; color: #475569; border-left: 1px solid #e2e8f0; }

html:root body.tema-claro .afiche-form-panel .af-sub { color: #475569 !important; }
html:root body.tema-claro .afiche-form-panel .af-privacidad { color: #64748b !important; }
html:root body.tema-claro .afiche-form-panel .af-label,
html:root body.tema-claro .afiche-form-panel .af-radio { color: #475569 !important; }

html:root body.tema-claro .afiche-form-panel .af-input {
    background: #ffffff !important; color: #475569 !important; border: 1px solid #cbd5e1 !important;
}
html:root body.tema-claro .afiche-form-panel .af-input::placeholder { color: #94a3b8 !important; }
html:root body.tema-claro .afiche-form-panel .af-radio { background: #ffffff; border: 1px solid #cbd5e1; }
html:root body.tema-claro .afiche-form-panel .af-radio:has(input:checked) { background: rgba(0, 180, 216, 0.12); border-color: #00b4d8; }
body.tema-claro .af-radio .form-check-input { border-color: #94a3b8; }
body.tema-claro .afiche-form-panel .af-msg.ok  { color: #64748b; }
body.tema-claro .afiche-form-panel .af-msg.err { color: #b91c1c; }
body.tema-claro .af-privacidad i { color: #16a34a; }

body.tema-claro .afiche-x { background: #ffffff; color: #475569; border: 1px solid #cbd5e1; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2); }
body.tema-claro .afiche-x:hover { background: #f1f5f9; }

/* Afiche de respaldo (sin imagen subida) en blanco */
html:root body.tema-claro .afiche-poster:not(.afiche-poster-img) {
    color: #475569;
    background: #ffffff;
}
html:root body.tema-claro .afiche-poster-img { background: #ffffff; }
html:root body.tema-claro .afiche-poster .ap-headline,
html:root body.tema-claro .afiche-poster .ap-store-text,
html:root body.tema-claro .afiche-poster .ap-mini-title,
html:root body.tema-claro .afiche-poster .ap-off-big { color: #475569; }
html:root body.tema-claro .afiche-poster .ap-off-small,
html:root body.tema-claro .afiche-poster .ap-mini-text { color: #475569; }
html:root body.tema-claro .afiche-poster .ap-pill { color: #0284c7; background: rgba(0, 180, 216, 0.1); border-color: rgba(0, 180, 216, 0.4); }
body.tema-claro .ap-store { background: #ffffff; border-color: rgba(0, 180, 216, 0.5); }
body.tema-claro .ap-mini { background: #ffffff; border-color: #cbd5e1; }
body.tema-claro .ap-mini-cyan   { border-color: rgba(0, 180, 216, 0.55); }
body.tema-claro .ap-mini-purple { border-color: rgba(124, 58, 237, 0.45); }
body.tema-claro .ap-mini-sunset { border-color: rgba(249, 115, 22, 0.55); }


/* Barra de navegación: negro brillante y transparente (el resto de la página es blanco) */
html:root body.tema-claro .navbar-pomelia {
    background: linear-gradient(180deg, rgba(40, 46, 56, 0.88) 0%, rgba(8, 10, 14, 0.82) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 18px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
html:root body.tema-claro .navbar-pomelia .nav-link-pomelia { color: rgba(255, 255, 255, 0.85) !important; }
html:root body.tema-claro .navbar-pomelia .nav-link-pomelia:hover,
html:root body.tema-claro .navbar-pomelia .nav-link-pomelia.active { color: #00b4d8 !important; }
@media (max-width: 991.98px) {
    body.tema-claro .navbar-collapse {
        background-color: rgba(10, 10, 12, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Etiquetas "Fase" y puntos: colores suaves */
body.tema-claro .timeline-dot-pomelia.bg-cyan,
body.tema-claro .badge.bg-cyan   { background-color: #6cc3d5 !important; }
body.tema-claro .timeline-dot-pomelia.bg-purple,
body.tema-claro .badge.bg-purple { background-color: #a493d6 !important; }
body.tema-claro .timeline-dot-pomelia.bg-sunset,
body.tema-claro .badge.bg-sunset { background-color: #eab07f !important; }
body.tema-claro .badge.bg-dark   { background-color: #94a3b8 !important; }
body.tema-claro main .border-cyan-dim   { border-color: rgba(108, 195, 213, 0.55) !important; }
body.tema-claro main .border-purple-dim { border-color: rgba(164, 147, 214, 0.55) !important; }
body.tema-claro main .border-sunset-dim { border-color: rgba(234, 176, 127, 0.55) !important; }
body.tema-claro main .border-soft       { border-color: rgba(148, 163, 184, 0.6) !important; }

/* Títulos y subtítulos: gris suave en lugar de negro cargado */
html:root body.tema-claro main :is(h1, h2, h3, h4, h5, h6).text-dark,
html:root body.tema-claro main .section-title-light { color: #475569 !important; }

/* Texto "¿Listo para llevar tu proyecto al" en blanco */
html:root body.tema-claro #cta-final h3 .section-title-light,
html:root body.tema-claro #cta-final .section-title-light { color: #ffffff !important; }

/* Título del afiche: parte en blanco -> mismo gris que "Línea de Tiempo" en fondo blanco */
html:root body.tema-claro .afiche-form-panel .af-title,
html:root body.tema-claro .afiche-form-panel .af-title .text-white {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}

/* Mensaje de exito: mismo color que el texto .af-sub */
html:root body.tema-claro .afiche-form-panel .af-msg.ok { color: #475569 !important; }

/* ---------- Contornos más marcados en los cuadros ---------- */
html:root body.tema-claro main .card-pomelia,
html:root body.tema-claro main .bg-card-pomelia { border-width: 1.5px !important; border-style: solid !important; }
html:root body.tema-claro main .border-cyan-dim   { border-color: rgba(0, 150, 185, 0.95) !important; }
html:root body.tema-claro main .border-purple-dim { border-color: rgba(109, 40, 217, 0.9) !important; }
html:root body.tema-claro main .border-sunset-dim { border-color: rgba(234, 88, 12, 0.95) !important; }
html:root body.tema-claro main .border-soft       { border-color: #475569 !important; }
html:root body.tema-claro .border-gradient-purple { border: 1.5px solid rgba(109, 40, 217, 0.9) !important; }
html:root body.tema-claro #contactForm .custom-input-pomelia,
html:root body.tema-claro #contactForm .custom-input-pomelia:focus { border: 1.5px solid #64748b !important; }
html:root body.tema-claro #contactForm .custom-input-pomelia:focus { border-color: #00b4d8 !important; }
html:root body.tema-claro .badge.border { border-width: 1.5px !important; }

/* Afiche: contorno del cuadro y de los campos */
html:root body.tema-claro .afiche-card { box-shadow: 0 0 0 1.5px #64748b, 0 12px 50px rgba(15, 23, 42, 0.35); }
html:root body.tema-claro .afiche-form-panel { border-left: 1.5px solid #94a3b8; }
html:root body.tema-claro .afiche-form-panel .af-input { border: 1.5px solid #64748b !important; }
html:root body.tema-claro .afiche-form-panel .af-radio { border: 1.5px solid #64748b; }
