/* Tema «Paneles» (Ajustes › Diseño › Estilo de la web).
   Fondo gris, cada bloque en una tarjeta blanca, cabecera flotante en pastilla y hero con panel tipo aplicación.
   Usa las mismas variables de color y tipografía que main.css. */

body.theme-panel { background: var(--c-light); }
.theme-panel { --panel: #fff; --chip: #f3f4f9; --r-panel: 28px; }

/* ---------- Cabecera flotante en pastilla ---------- */
.theme-panel .site-header,
.theme-panel.hdr-dark .site-header,
.theme-panel.hdr-primary .site-header,
.theme-panel.hdr-light .site-header { background: transparent; border: 0; box-shadow: none; padding: 14px 16px 0; pointer-events: none; }
.theme-panel .nav-wrap { pointer-events: auto; position: relative; width: min(1180px, 100%); min-height: 64px; padding: 8px 8px 8px 22px; border-radius: 999px; background: color-mix(in srgb, var(--c-dark) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); }
.theme-panel.hdr-light .nav-wrap { background: color-mix(in srgb, #fff 88%, transparent); border: 1px solid var(--c-line); }
.theme-panel .logo-img { max-height: 36px; }
.theme-panel .nav > ul > li > a { border-radius: 999px; }
.theme-panel .nav a[aria-current="page"] { box-shadow: none; border-radius: 999px; }
.theme-panel.hdr-dark .nav > ul > li > a:hover, .theme-panel.hdr-primary .nav > ul > li > a:hover { color: var(--c-secondary); }
.theme-panel.hdr-dark .nav > ul > li > a[aria-current="page"], .theme-panel.hdr-primary .nav > ul > li > a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
.theme-panel .nav .btn { --b: var(--c-secondary); --t: var(--c-on-secondary); color: var(--t); min-height: 48px; padding: 10px 22px; border-radius: 999px; }
.theme-panel.hdr-dark .nav-phone a, .theme-panel.hdr-primary .nav-phone a { color: #fff; }
.theme-panel .sub { top: calc(100% + 12px); border-radius: 20px; padding: 10px; }
.theme-panel .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.theme-panel .sub a { border-radius: 12px; }
@media (max-width: 1240px) {
  .theme-panel .nav-wrap { padding: 6px 8px 6px 18px; }
  .theme-panel .burger { margin-right: 0; }
  .theme-panel .nav { top: calc(100% + 10px); border-radius: 24px; border: 1px solid var(--c-line); max-height: calc(100vh - 110px); }
  .theme-panel.hdr-dark .nav-phone a, .theme-panel.hdr-primary .nav-phone a { color: var(--c-dark); }
  .theme-panel.hdr-dark .nav > ul > li > a[aria-current="page"], .theme-panel.hdr-primary .nav > ul > li > a[aria-current="page"] { color: var(--c-primary-text); background: none; }
  .theme-panel .nav > ul > li > a { border-radius: 0; }
}

/* ---------- Bloques en paneles ---------- */
.theme-panel .blk { padding: 7px 0; }
.theme-panel .bg-white, .theme-panel .bg-light, .theme-panel .bg-hero { background: transparent; }
.theme-panel .blk:not(.blk-hero) > .container { background: var(--panel); border: 1px solid var(--c-line); border-radius: var(--r-panel); padding: clamp(28px, 2.4vw + 18px, 60px) clamp(20px, 3vw + 10px, 60px); }
.theme-panel .blk.bg-dark, .theme-panel .blk.bg-primary { background: transparent; }
.theme-panel .blk.bg-dark:not(.blk-hero) > .container, .theme-panel .blk.blk-cta:not(.blk-hero) > .container { background: var(--c-dark); color: var(--c-on-dark); border-color: transparent; }
.theme-panel .blk.bg-primary:not(.blk-cta):not(.blk-hero) > .container { background: var(--c-primary); color: var(--c-on-primary); border-color: transparent; }
.theme-panel .blk-hero + .blk { padding-top: 0; }
.theme-panel main > .blk:last-child, .theme-panel .blk:last-child { padding-bottom: 28px; }

/* Títulos */
.theme-panel h1, .theme-panel .h1 { font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.theme-panel .h2 { font-weight: 800; letter-spacing: -.03em; }
.theme-panel .h3, .theme-panel .h4 { font-weight: 750; }
.theme-panel .hero .h1 { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem); }
.theme-panel :is(h1, h2, .h1, .h2) em, .theme-panel .blk :is(h1, h2, .h1, .h2) em { color: var(--c-on-secondary); background: var(--c-secondary); padding: 0 .16em; border-radius: .2em; text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Antetítulo como etiqueta de estado */
.theme-panel .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary-text); font-size: .76rem; letter-spacing: .08em; }
.theme-panel .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.theme-panel .hero .eyebrow { background: #fff; color: var(--c-dark); font-size: .88rem; letter-spacing: .01em; text-transform: none; font-weight: 650; }
.theme-panel .hero .eyebrow::before { background: #1f9d55; }
.theme-panel .bg-dark .eyebrow, .theme-panel .blk-cta .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; opacity: 1; }

/* Hero */
.theme-panel .hero-inner { padding: clamp(36px, 4vw, 72px) 0 clamp(36px, 4vw, 64px); }
.theme-panel .hero-media img { border-radius: var(--r-panel); border: 1px solid var(--c-line); background: #fff; box-shadow: 0 40px 80px -50px rgba(16, 19, 28, .45); }
.theme-panel .hero-form { border-radius: var(--r-panel); border: 1px solid var(--c-line); background: #fff; box-shadow: 0 40px 80px -50px rgba(16, 19, 28, .45); }
.theme-panel .rating-chip { box-shadow: none; border: 1px solid var(--c-line); }

/* Hero con panel tipo aplicación */
.hero-panel .hero-inner { grid-template-columns: 1fr; text-align: center; max-width: 1000px; padding-bottom: clamp(28px, 3vw, 44px); }
.hero-panel .lead { margin-inline: auto; }
.hero-panel .btns, .hero-panel .points, .hero-panel .crumbs ol { justify-content: center; }
.theme-panel .hero-panel .h1 { font-size: clamp(2.6rem, 1.2rem + 5vw, 6.2rem); line-height: 1.04; }
.hero-panel-wrap { padding-bottom: 10px; }
.tk-app { display: grid; grid-template-columns: 230px minmax(0, 1fr) minmax(320px, 380px); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-panel, 28px); overflow: hidden; box-shadow: 0 50px 100px -50px rgba(16, 19, 28, .45); text-align: left; }
.tk-app.tk-noside { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
.tk-side { background: var(--c-dark); color: #fff; padding: 22px 14px; }
.tk-label { margin: 0 8px 12px; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #a9aec0; }
.tk-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tk-queue { display: flex; justify-content: space-between; gap: 10px; padding: 12px 10px; border-radius: 12px; color: #dde0e8; text-decoration: none; font-weight: 600; }
a.tk-queue:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tk-side li:first-child .tk-queue { background: rgba(255, 255, 255, .1); color: #fff; }
.tk-queue b { color: var(--c-secondary); }
.tk-note { margin: 16px 10px 0; font-size: .86rem; color: #c9cdd8; line-height: 1.5; }
.tk-list { padding: 22px; border-right: 1px solid var(--c-line); }
.tk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.tk-title { margin: 0; font-family: var(--f-heading); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.tk-head span { font-size: .85rem; color: var(--c-muted); }
.tk-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 16px; }
.tk-row p { margin: 0; }
.tk-row-t { font-weight: 700; line-height: 1.35; }
.tk-row-t a { color: inherit; text-decoration: none; }
.tk-row-t a:hover { color: var(--c-primary-text); }
.tk-row-m { font-size: .85rem; color: var(--c-muted); line-height: 1.4; margin-top: 3px !important; }
.tk-status { padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 750; white-space: nowrap; }
.st-open { background: var(--c-primary-soft); color: var(--c-primary-text); }
.st-progress { background: #ffe7a8; color: #5a4200; }
.st-done { background: var(--c-secondary); color: var(--c-on-secondary); }
.tk-form { padding: 24px; background: #f7f8fb; }
.tk-form .form-title { font-size: 1.35rem; }
@media (max-width: 1100px) { .tk-app { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); } .tk-side { display: none; } }
@media (max-width: 800px) { .tk-app, .tk-app.tk-noside { grid-template-columns: 1fr; } .tk-form { order: -1; } .tk-list { border-right: 0; border-top: 1px solid var(--c-line); } }

/* Tarjetas dentro de los paneles */
.theme-panel .card, .theme-panel .bg-white .card { background: var(--chip); border: 0; border-radius: 22px; }
.theme-panel .bg-dark .card, .theme-panel .blk-cta .card { background: rgba(255, 255, 255, .07); }
.theme-panel .card-icon { background: #fff; border-radius: 14px; }
.theme-panel .cards-image .card-img img { border-radius: 22px 22px 0 0; }
.theme-panel .card:has(h3 a):hover { box-shadow: 0 22px 40px -28px rgba(16, 19, 28, .45); }

/* Pasos como barra de progreso */
.theme-panel .steps { gap: 26px 0; }
.theme-panel .step { gap: 0; padding-right: 20px; }
.theme-panel .step-n { width: auto; height: 10px; border-radius: 0; background: var(--c-primary); color: transparent; font-size: 0; margin-bottom: 18px; }
.theme-panel .step:first-child .step-n { border-radius: 999px 0 0 999px; }
.theme-panel .step:nth-child(3) .step-n { background: #ffd25c; }
.theme-panel .step:last-child .step-n { border-radius: 0 999px 999px 0; background: var(--c-secondary); }
.theme-panel .step:last-child:first-child .step-n { border-radius: 999px; }
.step-label { margin: 0 0 6px; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary-text); }
.theme-panel .step:nth-child(3) .step-label { color: #6b4f00; }
.theme-panel .step:last-child .step-label { color: #3b5000; }
.theme-panel .bg-dark .step-label { color: var(--c-secondary); }
@media (max-width: 700px) { .theme-panel .step-n { border-radius: 999px !important; } .theme-panel .step { padding-right: 0; } }

/* Texto e imágenes */
.theme-panel .blk > .container.split-solo { max-width: none; }
/* Texto sin imagen: título fijo a la izquierda y texto a la derecha, en dos columnas */
.theme-panel .split-solo > .split-copy { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; width: 100%; }
.theme-panel .split-solo .split-head { position: sticky; top: 110px; }
.theme-panel .split-solo .split-head .h2 { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 3rem); }
.theme-panel .split-solo .split-head::after { content: ""; display: block; width: 64px; height: 8px; margin-top: 22px; border-radius: 999px; background: linear-gradient(90deg, var(--c-primary) 50%, var(--c-secondary) 50%); }
@media (max-width: 960px) { .theme-panel .split-solo > .split-copy { grid-template-columns: 1fr; } .theme-panel .split-solo .split-head { position: static; } }
.theme-panel .split-media img { border-radius: 22px; }
.theme-panel .checklist svg { color: var(--c-primary-text); }

/* FAQ, reseñas, contacto */
.theme-panel .faq-item { border-color: var(--c-line); }
.theme-panel .field input, .theme-panel .field select, .theme-panel .field textarea { border-radius: 14px; }

/* Llamada a la acción: panel oscuro con botón lima */
.theme-panel .blk-cta { padding: 7px 0; }
.theme-panel .blk.blk-cta:not(.blk-hero) > .container { padding: clamp(32px, 4vw + 10px, 72px); border-radius: 32px; }
.theme-panel .blk-cta .btn-invert { --b: var(--c-secondary); --t: var(--c-on-secondary); }
.theme-panel .blk-cta .h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); }

/* Blog */
.theme-panel .post-card { background: #fff; border: 1px solid var(--c-line); }
.theme-panel .blk .post-card { background: var(--chip); border: 0; }
.theme-panel .post-cover img, .theme-panel .prose img { border-radius: 22px; }
.theme-panel .post-cta { background: var(--c-dark); border-radius: 28px; }
.theme-panel .post-cta .btn { --b: var(--c-secondary); --t: var(--c-on-secondary); }

/* Pie */
.theme-panel .site-footer { margin-top: 20px; border-radius: 36px 36px 0 0; }

/* Artículo del blog en un panel */
.theme-panel .post-head { background: transparent; }
.theme-panel .post-body-wrap { width: min(1000px, 100% - 32px); margin: 0 auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-panel); padding: clamp(10px, 2vw, 30px) 0 clamp(20px, 3vw, 40px); }
.theme-panel .post-body-wrap .post-cover img { margin-top: 10px; }
.theme-panel .post-cta { margin-top: 14px; }
.theme-panel .post + .blk > .container { margin-top: 0; }
.theme-panel .nav-cta .btn { display: flex; justify-content: center; }

.theme-panel .gl-item { background: var(--chip); border-radius: 22px; }
.theme-panel .gl-index a { background: var(--chip); }
