/* =====================================================================
   Manual de Capacitación Profesional — Estilos globales
   Inter + JetBrains Mono · Paleta azul + naranja
   ===================================================================== */

:root {
    --azul-oscuro:   #1F3A5F;
    --azul-medio:    #2C3E50;
    --azul-claro:    #3D5A80;
    --beige:         #F4E8D8;
    --beige-claro:   #FAFBFC;
    --naranja:        #E67E22;
    --naranja-hover:  #D35400;
    --verde:          #27AE60;
    --verde-hover:    #229954;
    --rojo:           #C0392B;
    --rojo-hover:     #A93226;
    --gris-oscuro:   #34495E;
    --gris-medio:    #7F8C8D;
    --gris-claro:    #BDC3C7;
    --blanco:        #FFFFFF;
    --sombra-sm:     0 2px 4px rgba(0,0,0,0.06);
    --sombra-md:     0 4px 12px rgba(0,0,0,0.08);
    --sombra-lg:     0 12px 32px rgba(0,0,0,0.12);
    --radio-sm:      6px;
    --radio-md:      12px;
    --radio-lg:      24px;
    --transicion:    all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gris-oscuro);
    background: var(--beige-claro);
    min-height: 100vh;
}

h1, h2, h3, h4 {
    color: var(--azul-oscuro);
    font-weight: 800;
    letter-spacing: -0.5px;
}
h1 { font-size: 2.4rem; line-height: 1.15; }
h2 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 0.5em; }
h3 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 0.4em; }
p { margin-bottom: 1em; }
a { color: var(--naranja); text-decoration: none; transition: var(--transicion); }
a:hover { color: var(--naranja-hover); }

code, pre {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.9em;
}
pre {
    background: var(--gris-oscuro);
    color: #ecf0f1;
    padding: 16px;
    border-radius: var(--radio-sm);
    overflow-x: auto;
    line-height: 1.5;
}
code { background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 3px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

main { padding: 32px 0; min-height: calc(100vh - 200px); }

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    color: white;
    padding: 16px 0;
    box-shadow: var(--sombra-md);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.site-header .logo {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-header .logo-icon {
    background: var(--naranja);
    width: 36px;
    height: 36px;
    border-radius: var(--radio-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    font-weight: 700;
}
.site-header .logo-text {
    font-size: 0.95rem;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}
.site-nav a {
    color: white;
    padding: 8px 14px;
    border-radius: var(--radio-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transicion);
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: white; }
.site-nav a.btn-cta { background: var(--naranja); }
.site-nav a.btn-cta:hover { background: var(--naranja-hover); }
.site-nav a.nav-profesores {
    background: rgba(39, 174, 96, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
}
.site-nav a.nav-profesores:hover {
    background: rgba(39, 174, 96, 0.35);
    color: #ffffff;
}

/* === SOLAPAS DE TEMAS (temas.php) === */
.temas-tabs-wrapper {
    margin-top: 8px;
}
.temas-tabs-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}
/* Card-pill de cada solapa */
.tema-tab-btn {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #475569;
    font-family: inherit;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-height: 92px;
}
.tema-tab-btn::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--tab-accent, #94A3B8);
    transition: width 0.2s ease;
}
.tema-tab-btn::after {
    /* Indicador "ACTIVA" tipo pestaña */
    content: "";
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 4px;
    background: var(--tab-accent, #94A3B8);
    border-radius: 4px 4px 0 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.tema-tab-btn:hover {
    border-color: var(--tab-accent, #94A3B8);
    background: var(--tab-bg, #F8FAFC);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}
.tema-tab-btn.active {
    border-color: var(--tab-accent, #1F3A68);
    border-width: 3px;
    background: white;
    color: #1F3A68;
    box-shadow: 0 12px 28px rgba(31, 58, 104, 0.18), 0 0 0 4px var(--tab-bg, rgba(31,58,104,0.05));
    transform: translateY(-4px);
}
.tema-tab-btn.active::before {
    width: 10px;
}
.tema-tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}
.tema-tab-btn:focus-visible {
    outline: 3px solid var(--tab-accent, #2980B9);
    outline-offset: 2px;
}
.tema-tab-icon {
    font-size: 2rem;
    line-height: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tab-bg, #F1F5F9);
    border-radius: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease;
}
.tema-tab-btn.active .tema-tab-icon {
    background: var(--tab-accent, #1F3A68);
    color: white;
    transform: scale(1.10) rotate(-4deg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.tema-tab-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}
.tema-tab-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--tab-accent, #94A3B8);
}
.tema-tab-name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #1F3A68;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tema-tab-btn.active .tema-tab-name { color: #1F3A68; }
.tema-tab-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #475569;
    font-weight: 600;
    background: #F1F5F9;
    padding: 3px 9px;
    border-radius: 100px;
    margin-top: 4px;
    align-self: flex-start;
    white-space: nowrap;
}
.tema-tab-btn.active .tema-tab-count {
    color: white;
    background: var(--tab-accent, #1F3A68);
    font-weight: 700;
}

.tema-tab-panel {
    display: none;
    animation: fadeInTab 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tema-tab-panel.active { display: block; }
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tema-tab-bonus-banner {
    background: linear-gradient(135deg, #FFF3CD 0%, #FCE8B8 100%);
    border: 1px solid #F9E79F;
    border-left: 4px solid #F39C12;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #7D6608;
}
.tema-tab-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
    background: #F8FAFC;
    border-radius: 12px;
    border: 2px dashed #E2E8F0;
}

.tema-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.tema-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.18s ease;
    position: relative;
    overflow: hidden;
}
.tema-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: #1F3A68;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.tema-card:hover {
    border-color: #1F3A68;
    box-shadow: 0 8px 20px rgba(31, 58, 104, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.tema-card:hover::before { opacity: 1; }
.tema-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.tema-card-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.5px;
}
.tema-card-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1F3A68;
    background: rgba(31, 58, 104, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}
.tema-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1F3A68;
    margin: 0 0 8px;
    line-height: 1.3;
}
.tema-card-desc {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 14px;
    flex: 1;
}
.tema-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.tema-meta-item {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: #F1F5F9;
    padding: 3px 8px;
    border-radius: 100px;
}
.tema-meta-xp { background: rgba(243, 156, 18, 0.12); color: #B7791F; }
.tema-meta-level { background: rgba(31, 58, 104, 0.08); color: #1F3A68; }
.tema-card-cta {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    color: #F39C12;
    transition: transform 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tema-card:hover .tema-card-cta { transform: translateX(4px); }

@media (max-width: 640px) {
    .temas-tabs-bar { grid-template-columns: 1fr; }
    .tema-tab-btn { padding: 12px 14px; }
    .tema-tab-name { font-size: 0.9rem; }
    .tema-tab-grid { grid-template-columns: 1fr; }
}

.site-footer {
    background: var(--azul-oscuro);
    color: rgba(255,255,255,0.85);
    padding: 40px 0 20px;
    margin-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
}
.site-footer h4 { color: white; font-size: 1rem; margin-bottom: 12px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.site-footer a:hover { color: var(--naranja); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 6px; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* === BOTONES === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radio-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transicion);
    text-align: center;
    font-family: inherit;
}
.btn-primary { background: var(--naranja); color: white; }
.btn-primary:hover { background: var(--naranja-hover); transform: translateY(-1px); color: white; }
.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}
.btn-secondary { background: var(--azul-oscuro); color: white; }
.btn-secondary:hover { background: var(--azul-medio); color: white; }
.btn-success { background: var(--verde); color: white; }
.btn-success:hover { background: var(--verde-hover); }
.btn-danger { background: var(--rojo); color: white; }
.btn-danger:hover { background: var(--rojo-hover); }
.btn-ghost {
    background: transparent;
    color: var(--azul-oscuro);
    border: 2px solid var(--azul-oscuro);
}
.btn-ghost:hover { background: var(--azul-oscuro); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* === CARDS === */
.card {
    background: white;
    border-radius: var(--radio-md);
    padding: 24px;
    box-shadow: var(--sombra-sm);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 16px;
}
.card:hover { box-shadow: var(--sombra-md); }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* === CHAPTER CARDS === */
.chapter-card {
    background: white;
    border-radius: var(--radio-md);
    padding: 24px;
    box-shadow: var(--sombra-sm);
    border-top: 4px solid var(--naranja);
    transition: var(--transicion);
}
.chapter-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }
.chapter-num {
    color: var(--naranja);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
    color: white;
    padding: 60px 0 80px;
    text-align: center;
}
.hero h1 { color: white; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.hero .subtitulo { font-size: 1.2rem; opacity: 0.9; margin-bottom: 32px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero .badges {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
}
.hero .badge {
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* === FORMS === */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--azul-oscuro);
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gris-claro);
    border-radius: var(--radio-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transicion);
    background: white;
}
.form-control:focus {
    outline: none;
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15);
}
.form-group .help {
    font-size: 0.85rem;
    color: var(--gris-medio);
    margin-top: 4px;
}
.form-control.is-invalid { border-color: var(--rojo); }
.invalid-feedback {
    color: var(--rojo);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* === FLASH === */
.flash {
    padding: 12px 18px;
    border-radius: var(--radio-sm);
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid;
}
.flash-exito {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--verde);
}
.flash-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--rojo);
}

/* === TABLES === */
.data-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: var(--radio-md);
    overflow: hidden;
    box-shadow: var(--sombra-sm);
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background: var(--azul-oscuro);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.data-table tr:hover { background: var(--beige-claro); }

/* === BADGES / TAGS === */
.tag {
    display: inline-block;
    background: var(--naranja);
    color: white;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px;
}
.tag.azul { background: var(--azul-oscuro); }
.tag.verde { background: var(--verde); }
.tag.rojo { background: var(--rojo); }
.tag.gris { background: var(--gris-medio); }

/* === QUIZ === */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radio-md);
    padding: 32px;
    box-shadow: var(--sombra-md);
}
.quiz-progress {
    background: var(--beige-claro);
    height: 8px;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 20px;
}
.quiz-progress-bar {
    background: linear-gradient(90deg, var(--naranja), var(--naranja-hover));
    height: 100%;
    transition: width 0.4s ease;
}
.quiz-opciones {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}
.quiz-opcion {
    background: var(--beige-claro);
    border: 2px solid transparent;
    padding: 14px 18px;
    border-radius: var(--radio-sm);
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.quiz-opcion:hover {
    background: var(--beige);
    border-color: var(--naranja);
    transform: translateX(4px);
}
/* Estado seleccionado via :has() para navegadores modernos */
.quiz-opcion:has(input:checked) {
    background: var(--azul-oscuro);
    color: white;
    border-color: var(--azul-oscuro);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}
.quiz-opcion:has(input:checked) .letra {
    background: rgba(255,255,255,0.25);
    color: white;
}
/* Fallback: clase .selected aplicada por JavaScript */
.quiz-opcion.selected {
    background: var(--azul-oscuro);
    color: white;
    border-color: var(--azul-oscuro);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}
.quiz-opcion.selected .letra {
    background: rgba(255,255,255,0.25);
    color: white;
}
.quiz-opcion.correcta {
    background: var(--verde);
    color: white;
    border-color: var(--verde);
}
.quiz-opcion.incorrecta {
    background: var(--rojo);
    color: white;
    border-color: var(--rojo);
}
.quiz-opcion .letra {
    width: 30px;
    height: 30px;
    background: white;
    color: var(--azul-oscuro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
/* Radio button accesible (oculto visualmente pero funcional con teclado/accesibilidad) */
.quiz-opcion input.quiz-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.quiz-opcion input.quiz-radio:focus-visible + .letra {
    outline: 3px solid var(--naranja);
    outline-offset: 2px;
}
.quiz-opcion.selected .letra,
.quiz-opcion.correcta .letra,
.quiz-opcion.incorrecta .letra { background: rgba(255,255,255,0.2); color: white; }

.quiz-result {
    text-align: center;
    padding: 32px 20px;
}
.quiz-result .puntaje {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--naranja), var(--naranja-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 16px 0;
}

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radio-md);
    box-shadow: var(--sombra-sm);
    border-left: 4px solid var(--naranja);
}
.stat-label { color: var(--gris-medio); font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--azul-oscuro); margin: 4px 0; }

/* === DETAIL CONTENT === */
.content-block {
    background: white;
    border-radius: var(--radio-md);
    padding: 32px;
    box-shadow: var(--sombra-sm);
    line-height: 1.8;
}
.content-block h2, .content-block h3 { margin-top: 1.5em; }
.content-block pre { margin: 16px 0; }
.content-block ul, .content-block ol { padding-left: 24px; margin: 12px 0; }
.content-block li { margin-bottom: 6px; }
.content-block blockquote {
    border-left: 4px solid var(--naranja);
    padding: 12px 16px;
    margin: 16px 0;
    background: var(--beige-claro);
    font-style: italic;
}

/* === ANIMATIONS === */
@keyframes fadeUp { from {opacity:0; transform: translateY(20px);} to {opacity:1; transform: translateY(0);} }
@keyframes pulse { 0%,100% {transform: scale(1);} 50% {transform: scale(1.03);} }
@keyframes shake { 0%,100% {transform: translateX(0);} 25% {transform: translateX(-8px);} 75% {transform: translateX(8px);} }
.fade-up { animation: fadeUp 0.6s ease both; }
.pulse { animation: pulse 0.5s ease; }
.shake { animation: shake 0.5s ease; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    .site-header .container { flex-direction: column; align-items: stretch; }
    .site-nav { justify-content: center; font-size: 0.85rem; }
    .container { padding: 0 16px; }
    .hero { padding: 40px 0 60px; }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 8px 10px; }
}

/* === ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================ */
/* === HERO PROMOCIONAL DEL MANUAL (en temas.php)             === */
/* ============================================================ */
.manual-promo-hero {
    background: linear-gradient(135deg, #1a2540 0%, #2a3a5a 100%);
    color: white;
    border-radius: 14px;
    padding: 28px;
    margin: 0 0 32px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}
.manual-promo-hero::before {
    content: "";
    position: absolute;
    top: -50%; right: -10%;
    width: 50%; height: 200%;
    background: radial-gradient(circle, rgba(243,156,18,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.manual-promo-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.manual-promo-cover {
    position: relative;
}
.manual-promo-img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.2);
    display: block;
    margin: 0 auto;
    transform: rotate(-1.5deg);
    transition: transform 0.3s ease;
}
.manual-promo-img:hover { transform: rotate(0deg) scale(1.03); }
.manual-promo-img-fallback {
    background: linear-gradient(135deg, #2a3a5a, #1a2540);
    border: 2px solid var(--naranja);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    padding: 20px;
}
.manual-promo-discount {
    position: absolute;
    top: -10px; right: -10px;
    background: #e74c3c;
    color: white;
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(231,76,60,0.5);
    border: 3px solid white;
    animation: pulse 2s infinite;
    z-index: 2;
}
.manual-promo-discount span {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
}
.manual-promo-info { flex: 1; }
.manual-promo-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border: 1px solid rgba(243,156,18,0.3);
}
.manual-promo-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.manual-promo-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 14px;
    max-width: 600px;
}
.manual-promo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}
.manual-promo-meta-item { white-space: nowrap; }
.manual-promo-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 0.9rem;
}
.manual-promo-stars {
    color: #f39c12;
    font-size: 1.1rem;
    letter-spacing: 2px;
}
.manual-promo-stars + strong { color: white; font-size: 1.05rem; }
.manual-promo-reviews { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.manual-promo-pricebox {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.manual-promo-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.manual-promo-price-current {
    font-size: 2.2rem;
    font-weight: 900;
    color: #f39c12;
    line-height: 1;
}
.manual-promo-price-old {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}
.manual-promo-price-save {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
}
.manual-promo-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(243,156,18,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.manual-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(243,156,18,0.6);
    color: white;
}
.manual-promo-bullets {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    color: rgba(255,255,255,0.92);
    font-size: 0.88rem;
    line-height: 1.4;
}
.manual-promo-bullets li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.manual-promo-bullets li:last-child { border-bottom: 0; }

@media (max-width: 768px) {
    .manual-promo-wrap { grid-template-columns: 1fr; gap: 20px; }
    .manual-promo-cover { display: flex; justify-content: center; max-width: 200px; margin: 0 auto; overflow: visible; }
    .manual-promo-img { max-width: 160px; transform: rotate(0); }
    .manual-promo-title { font-size: 1.3rem; }
    .manual-promo-meta { gap: 8px; font-size: 0.8rem; }
    .manual-promo-price-current { font-size: 1.7rem; }
    .manual-promo-btn { width: 100%; text-align: center; }
    .manual-promo-bullets { grid-template-columns: 1fr; }
    .manual-promo-discount { width: 56px; height: 56px; font-size: 1rem; top: -5px; right: -5px; }
    .manual-promo-discount span { font-size: 0.5rem; }
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid var(--naranja);
    outline-offset: 2px;
}
