/* =============================================================
   estilos.css — Estilos comunes de Opositafácil
   Usado por: flashcards.html, leyesnemotecnia.html,
              mayoriasce.html, plazos.html
   ============================================================= */

/* --- Variables --- */
:root {
    --color-primario:    #72b3d3;
    --color-primario-h:  #0056b3;
    --color-secundario:  #6c757d;
    --color-secundario-h:#5a6268;
    --color-accion:      #28a745;
    --color-accion-h:    #218838;
    --color-pista:       #f09684;
    --color-pista-h:     #e0a800;
    --color-fondo:       #f4f4f9;
    --color-respuesta:   #d9534f;
    --color-respuesta-bg:#f8d7da;
    --alto-header:       60px;   /* altura real del botón volver */
    --gap-header:        16px;   /* espacio entre header y contenido */
}

/* --- Reset y base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: var(--color-fondo);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* --- Cabecera — escritorio: estática, ocupa su espacio natural --- */
header {
    position: static;
    width: 100%;
    display: flex;
    align-items: center;
    padding: var(--gap-header) 16px;
    background-color: var(--color-fondo);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.boton-volver {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e8e8e5;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.3s;
    border: 2px solid var(--color-primario);
    white-space: nowrap;
}

.boton-volver:hover {
    transform: scale(1.05);
    background-color: #dcdcd9;
}

.logo-icono {
    height: 28px;
    width: auto;
}

/* --- Contenedor principal de cada subpágina --- */
main {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 40px;
    text-align: left;
}

/* --- Títulos y pie --- */
h1 {
    color: #333;
    margin: 0 0 16px 0;
    font-size: 28px;
}

h3 {
    color: #666;
    font-size: 13px;
    margin: 20px 0 0;
    font-weight: normal;
}

footer {
    width: 100%;
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 16px 20px;
    margin-top: auto;
}

/* --- Contenedor de la pregunta / respuesta --- */
#contadores {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contenedor-textos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    font-size: 22px;
    font-weight: bold;
    width: 100%;
}

/* Texto de la pregunta */
#tramite-mostrado,
#accion-mostrada,
#concepto-mostrado {
    color: #333;
    line-height: 1.4;
}

/* Respuesta oculta — estilo destacado rojo */
#plazo-oculto,
#mayoria-oculta,
#norma-oculta {
    display: none;
    color: var(--color-respuesta);
    background-color: var(--color-respuesta-bg);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1.4;
}

/* --- Zona de botones --- */
#area-botones {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* --- Botones --- */
button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background 0.25s, transform 0.15s;
    color: white;
    min-width: 140px;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Colores semánticos */
#boton-mostrar,
.btn-primario        { background-color: var(--color-primario); }
#boton-mostrar:hover,
.btn-primario:hover  { background-color: var(--color-primario-h); }

#boton-ocultar,
#boton-volver-ley,
.btn-secundario        { background-color: var(--color-secundario); }
#boton-ocultar:hover,
#boton-volver-ley:hover,
.btn-secundario:hover  { background-color: var(--color-secundario-h); }

#boton-siguiente,
#boton-cambiar-ley,
.btn-accion        { background-color: var(--color-accion); }
#boton-siguiente:hover,
#boton-cambiar-ley:hover,
.btn-accion:hover  { background-color: var(--color-accion-h); }

#boton-pista { background-color: var(--color-pista); color: #333; }
#boton-pista:hover { background-color: var(--color-pista-h); }


/* =============================================================
   ESTILOS ESPECÍFICOS POR PÁGINA
   ============================================================= */

/* --- mayoriasce.html y plazos.html --- */
#contenedor-textos {
    font-size: 20px;
}

/* --- leyesnemotecnia.html --- */
/* El contenedor va en fila horizontal (concepto — norma) */
.leyes #contenedor-textos {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 30px;
    gap: 12px;
}

#separador {
    display: none;
    color: #666;
}



#pista-oculta {
    display: none;
    margin: 16px 0 8px;
    padding: 12px;
    border: 2px dashed var(--color-pista);
    border-radius: 8px;
    background-color: #fff9e6;
    max-width: 90%;
}

#pista-oculta p {
    font-size: 13px;
    margin: 0 0 6px;
    color: #666;
}

#pista-oculta img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* --- flashcards.html --- */
p {
    color: #555;
    font-size: 15px;
    margin: 0 0 12px;
}

.controles-rango {
    margin: 12px 0;
    background: white;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.controles-rango p {
    margin: 0;
    font-size: 14px;
}

input[type="number"] {
    width: 70px;
    padding: 8px;
    font-size: 16px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

#btnGenerate,
#btnReveal {
    background-color: var(--color-primario);
    margin: 4px;
}

#btnGenerate:hover,
#btnReveal:hover {
    background-color: var(--color-primario-h);
}

#card {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#number {
    font-size: 200px;
    color: #333;
    font-weight: bold;
    line-height: 1;
}

.imagen-carta {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    #number { font-size: 160px; }
}

/* =============================================================
   PANTALLAS GRANDES (> 1366px) — centrado vertical del contenido
   ============================================================= */
@media (min-width: 1367px) {
    header {
        border-bottom: none;
    }

    main {
        flex: 1;
        justify-content: center;
    }
}

/* =============================================================
   LANDING — opositafacil.html
   ============================================================= */

.landing body,
body.landing {
    justify-content: flex-start;
}

.landing header {
    border-bottom: none;
    justify-content: center;
    padding: 32px 20px 20px;
}

.landing .logo {
    max-width: 200px;
    height: auto;
}

.landing main {
    flex: 1;
    max-width: 900px;
    padding: 20px 20px 40px;
}

.landing .contenedor-columnas {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 60px;
    width: 100%;
    margin-bottom: 40px;
}

.landing .columna {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 350px;
}

.landing h1 {
    font-size: 36px;
    margin: 0 0 24px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icono-seccion {
    height: 1em;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.landing .contenedor-botones {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.landing .boton-menu {
    display: block;
    padding: 22px;
    text-align: center;
    background-color: var(--color-primario);
    color: white;
    text-decoration: none;
    font-size: 20px;
    border-radius: 12px;
    transition: transform 0.2s, background 0.3s;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.landing .boton-menu:hover {
    background-color: var(--color-primario-h);
    transform: translateY(-3px);
}




/* =============================================================
   RESPONSIVE — Móviles (≤ 600px)
   El header pasa a fijo para no tapar el contenido al hacer scroll,
   y el body reserva el padding-top correspondiente.
   ============================================================= */
@media (max-width: 600px) {
    :root {
        --alto-header: 52px;
        --gap-header: 10px;
    }

    body {
        padding-top: calc(var(--alto-header) + var(--gap-header) * 2);
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
    }

    h1 {
        font-size: 22px;
    }

    #contenedor-textos {
        font-size: 18px;
        gap: 12px;
        margin: 14px 0;
    }

    #plazo-oculto,
    #mayoria-oculta,
    #norma-oculta {
        font-size: 18px;
    }

    button {
        width: 100%;
        min-width: unset;
    }

    #area-botones {
        flex-direction: column;
        gap: 8px;
    }

    .logo-icono {
        height: 22px;
    }

    .boton-volver {
        font-size: 13px;
        padding: 8px 14px;
    }

    footer {
        padding-bottom: 16px;
    }

    /* flashcards */
    #number {
        font-size: 110px;
    }

    .imagen-carta {
        max-width: 100%;
        max-height: 50vh;
        object-fit: contain;
    }

    #card {
        margin-top: 10px;
        min-height: 140px;
    }

    input[type="number"] {
        width: 60px;
        font-size: 15px;
        padding: 6px;
    }

    /* leyesnemotecnia */
    .leyes #contenedor-textos {
        font-size: 22px;
    }

    /* landing */
    body.landing {
        padding-top: 0;
    }

    .landing header {
        position: static;
        padding: 20px 20px 12px;
    }

    .landing .logo {
        max-width: 150px;
    }

    .landing .contenedor-columnas {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .landing .columna {
        max-width: 100%;
        width: 100%;
    }

    .landing h1 {
        font-size: 26px;
        margin-bottom: 16px;
        gap: 8px;
    }

    .landing .boton-menu {
        font-size: 18px;
        padding: 18px;
    }
}

/* =============================================================
   POMODORO — pomodoro.html
   Todos los selectores con prefijo .pom- para evitar colisiones.
   Los colores se mapean a las variables globales de Opositafácil:
     estudio  → --color-primario  (#72b3d3)
     descanso → --color-accion    (#28a745)
     acción   → --color-pista     (#f09684)  (botones secundarios ghost)
   ============================================================= */

/* Contenedor principal */
main.pomodoro {
    gap: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 40px;
    max-width: 720px;
}

/* ── Layout escritorio: dos columnas ── */
@media (min-width: 1024px) {
    main.pomodoro {
        max-width: 1100px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        align-items: start;
        column-gap: 24px;
        row-gap: 16px;
    }

    /* El h1 y la tarjeta del timer ocupan toda la anchura */
    main.pomodoro h1 {
        grid-column: 1 / -1;
        width: 100%;
    }

    .pom-timer-card {
        grid-column: 1 / -1;
    }

    /* Modo y Opciones se sitúan en columnas iguales */
    main.pomodoro .pom-card:not(.pom-timer-card) {
        align-self: start;
    }
}

/* ── Tarjetas ── */
.pom-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.75rem;
    width: 100%;
}

.pom-card-title {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a8480;
    margin-bottom: 1.25rem;
    font-weight: normal;
}

/* ── Tarjeta del temporizador ── */
.pom-timer-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
}

.pom-phase-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 13px;
    letter-spacing: .06em;
    color: #8a8480;
    margin-bottom: 1rem;
}

.pom-phase-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8a8480;
    transition: background .4s;
}

.pom-phase-dot.pom-study  { background: var(--color-primario); }
.pom-phase-dot.pom-rest   { background: var(--color-accion); }

.pom-timer-display {
    font-family: monospace;
    font-size: clamp(4rem, 18vw, 7rem);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1;
    color: #333;
    margin-bottom: .5rem;
    transition: color .4s;
}

.pom-timer-display.pom-rest-mode { color: var(--color-accion); }

/* Barra de progreso */
.pom-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    margin: 1.25rem 0 1.5rem;
    overflow: hidden;
}

.pom-progress-fill {
    height: 100%;
    background: var(--color-primario);
    border-radius: 99px;
    width: 100%;
    transition: width .5s linear, background .4s;
}

.pom-progress-fill.pom-rest-mode { background: var(--color-accion); }

/* Contador de ciclos */
.pom-cycle-info {
    font-size: 13px;
    color: #8a8480;
    margin-bottom: 1.75rem;
}

.pom-cycle-pips {
    display: inline-flex;
    gap: .35rem;
    vertical-align: middle;
    margin-left: .4rem;
}

.pom-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    transition: background .3s, border-color .3s;
}

.pom-pip.pom-filled {
    background: var(--color-primario);
    border-color: var(--color-primario);
}

/* ── Botones del pomodoro ── */
.pom-btn-row {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pom-btn {
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 9px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background .25s, transform .15s;
    color: white;
    min-width: 120px;
}

.pom-btn:hover  { transform: translateY(-2px); }
.pom-btn:active { transform: translateY(0); }

.pom-btn-primary               { background: var(--color-primario); }
.pom-btn-primary:hover         { background: var(--color-primario-h); }
.pom-btn-primary.pom-rest-mode { background: var(--color-accion); }
.pom-btn-primary.pom-rest-mode:hover { background: var(--color-accion-h); }

.pom-btn-ghost {
    background: transparent;
    color: #6c757d;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.pom-btn-ghost:hover { color: #333; border-color: #333; background: transparent; }

/* ── Selector de modo ── */
.pom-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .6rem;
    margin-bottom: 1rem;
}

.pom-mode-btn {
    font-size: 12px;
    padding: .8rem 1rem;
    border-radius: 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: all .15s;
    color: #333;
    min-width: unset;
    font-weight: normal;
}

.pom-mode-btn strong {
    display: block;
    margin-bottom: .2rem;
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.pom-mode-btn small { color: #8a8480; font-size: 11px; }

.pom-mode-btn.active {
    border-color: var(--color-primario);
    background: rgba(114, 179, 211, 0.12);
}

.pom-mode-desc {
    font-size: 13px;
    color: #8a8480;
    line-height: 1.5;
    padding: .75rem 1rem;
    background: var(--color-fondo);
    border-radius: 8px;
}

/* ── Panel personalizado ── */
.pom-custom-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-top: .75rem;
}

.pom-custom-panel.visible { display: grid; }

.pom-custom-field { display: flex; flex-direction: column; gap: .3rem; }

.pom-custom-field label {
    font-size: 11px;
    color: #8a8480;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pom-custom-field input[type=number] {
    font-size: 15px;
    padding: .55rem .75rem;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: var(--color-fondo);
    color: #333;
    width: 100%;
    margin: 0;
    text-align: left;
    transition: border-color .15s;
}

.pom-custom-field input[type=number]:focus {
    outline: none;
    border-color: var(--color-primario);
}

.pom-btn-apply {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: bold;
    padding: .6rem 1rem;
    border-radius: 8px;
    border: none;
    background: var(--color-primario);
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

.pom-btn-apply:hover { background: var(--color-primario-h); }

/* ── Filas de opciones (toggle) ── */
.pom-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pom-toggle-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.pom-toggle-row:first-of-type { padding-top: 0; }

.pom-toggle-label { font-size: 14px; font-weight: bold; color: #333; }
.pom-toggle-sub   { font-size: 12px; color: #8a8480; margin-top: .15rem; line-height: 1.4; }

/* Switch toggle */
.pom-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.pom-toggle input { opacity: 0; width: 0; height: 0; }

.pom-toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 99px;
    cursor: pointer;
    transition: background .2s;
}

.pom-toggle-track::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.pom-toggle input:checked + .pom-toggle-track              { background: var(--color-primario); }
.pom-toggle input:checked + .pom-toggle-track::after       { transform: translateX(18px); }

/* Control de volumen */
.pom-volume-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 0 0;
    border-top: 0px solid rgba(0, 0, 0, 0.06);
    margin-top: .2rem;
}

.pom-volume-row label {
    font-size: 12px;
    color: #8a8480;
    min-width: 32px;
}

.pom-volume-row input[type=range] {
    flex: 1;
    accent-color: var(--color-primario);
    height: 3px;
    border: none;
    padding: 0;
    margin: 0;
    width: auto;
}

#vol-display {
    font-size: 12px;
    color: #8a8480;
    min-width: 34px;
    text-align: right;
}

/* ── FAQ ── */
.pom-faq { margin-top: 1rem; }

.pom-faq-item { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }

.pom-faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-width: unset;
}

.pom-faq-q::after {
    content: '+';
    font-size: 1.2rem;
    color: #8a8480;
    flex-shrink: 0;
    transition: transform .2s;
}

.pom-faq-q.open::after { transform: rotate(45deg); }

.pom-faq-a {
    font-size: 14px;
    color: #8a8480;
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s;
    font-weight: normal;
    text-align: left;
}

.pom-faq-a.open { max-height: 300px; padding-bottom: 1rem; }

/* ── Responsive móvil (pomodoro) ── */
@media (max-width: 600px) {
    .pom-timer-card     { padding: 1.75rem 1rem; }
    .pom-card           { padding: 1.25rem; }
    .pom-mode-grid      { grid-template-columns: 1fr 1fr; }
    .pom-btn            { min-width: unset; width: auto; }
    .pom-btn-row        { gap: .5rem; }
}
/* =============================================================
   pomodoro.css — Estilos específicos del Pomodoro de Opositafácil
   Requiere estilos.css cargado antes
   ============================================================= */

/* --- Temporizador principal --- */
.pom-fase-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-secundario);
    margin-bottom: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pom-fase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-secundario);
    transition: background 0.4s;
    flex-shrink: 0;
}
.pom-fase-dot.study  { background-color: var(--color-primario); }
.pom-fase-dot.rest   { background-color: var(--color-accion); }

.pom-display {
    font-size: clamp(64px, 20vw, 110px);
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    color: #333;
    line-height: 1;
    margin: 8px 0 12px;
    transition: color 0.4s;
    font-family: sans-serif;
    letter-spacing: -0.02em;
}
.pom-display.rest-mode { color: var(--color-accion); }

/* --- Barra de progreso --- */
.pom-barra-wrap {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background-color: #ddd;
    border-radius: 99px;
    margin: 0 auto 12px;
    overflow: hidden;
}
.pom-barra-fill {
    height: 100%;
    width: 100%;
    background-color: var(--color-primario);
    border-radius: 99px;
    transition: width 0.5s linear, background 0.4s;
}
.pom-barra-fill.rest-mode { background-color: var(--color-accion); }

/* --- Ciclos --- */
.pom-ciclo-info {
    font-size: 13px;
    color: var(--color-secundario);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pom-pips {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.pom-pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: transparent;
    transition: background 0.3s, border-color 0.3s;
}
.pom-pip.filled {
    background: var(--color-primario);
    border-color: var(--color-primario);
}

/* --- Secciones internas (modo, opciones, faq) --- */
.pom-seccion {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    text-align: left;
}
.pom-seccion h3 {
    font-size: 13px;
    color: var(--color-secundario);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}

/* --- Grid de modos --- */
.pom-modo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.pom-modo-btn {
    font-size: 13px;
    font-weight: bold;
    padding: 12px 10px;
    border-radius: 10px;
    border: 2px solid #ddd;
    background: var(--color-fondo);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    color: #333;
    min-width: unset;
    line-height: 1.3;
}
.pom-modo-btn strong { display: block; margin-bottom: 3px; font-size: 13px; }
.pom-modo-btn small  { color: var(--color-secundario); font-size: 11px; font-weight: normal; }
.pom-modo-btn:hover  { border-color: var(--color-primario); transform: none; }
.pom-modo-btn.active {
    border-color: var(--color-primario);
    background-color: #e8f4fb;
    color: #333;
}
.pom-modo-desc {
    font-size: 13px;
    color: var(--color-secundario);
    background: var(--color-fondo);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0;
}

/* --- Panel personalizado --- */
.pom-custom-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}
.pom-custom-panel.visible { display: grid; }

.pom-custom-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pom-custom-field label {
    font-size: 12px;
    color: var(--color-secundario);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pom-custom-field input[type=number] {
    width: 100%;
    margin: 0;
}

.pom-btn-aplicar {
    grid-column: 1 / -1;
    background-color: var(--color-primario);
    color: white;
    font-size: 15px;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    min-width: unset;
    width: 100%;
}
.pom-btn-aplicar:hover { background-color: var(--color-primario-h); transform: translateY(-2px); }

/* --- Filas de opciones (toggle) --- */
.pom-opcion-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.pom-opcion-fila:last-of-type { border-bottom: none; }

.pom-opcion-texto {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pom-opcion-label { font-size: 15px; font-weight: bold; color: #333; }
.pom-opcion-sub   { font-size: 12px; color: var(--color-secundario); line-height: 1.4; }

.pom-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}
.pom-toggle input { opacity: 0; width: 0; height: 0; }
.pom-toggle-track {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 99px;
    transition: background 0.2s;
    cursor: pointer;
}
.pom-toggle-track::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.pom-toggle input:checked + .pom-toggle-track { background: var(--color-primario); }
.pom-toggle input:checked + .pom-toggle-track::after { transform: translateX(20px); }

/* --- Volumen --- */
.pom-volumen-fila {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 4px;
}
.pom-volumen-fila label { font-size: 13px; color: var(--color-secundario); min-width: 55px; }
.pom-volumen-fila input[type=range] { flex: 1; accent-color: var(--color-primario); margin: 0; }
#vol-display { font-size: 13px; color: var(--color-secundario); min-width: 36px; text-align: right; }

/* --- FAQ --- */
.pom-faq-item { border-bottom: 1px solid #eee; }
.pom-faq-item:last-child { border-bottom: none; }
.pom-faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: unset;
    border-radius: 0;
    transform: none !important;
}
.pom-faq-q::after { content: '+'; font-size: 18px; color: var(--color-secundario); flex-shrink: 0; transition: transform 0.2s; }
.pom-faq-q.open::after { transform: rotate(45deg); }
.pom-faq-q:hover { background: none; color: var(--color-primario); }
.pom-faq-a {
    font-size: 13px;
    color: var(--color-secundario);
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
}
.pom-faq-a.open { max-height: 300px; padding-bottom: 12px; }

/* --- Responsive móvil --- */
@media (max-width: 600px) {
    .pom-modo-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pom-seccion {
        padding: 16px;
    }
    .pom-custom-panel {
        grid-template-columns: 1fr 1fr;
    }
}