/*
Theme Name: Konoze Editorial
Description: Tema propio de Konoze Editorial: tienda de cursos SCORM con licencias por alumno.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: konoze
*/

@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --verde-950: #0b2118;
  --verde-900: #10301f;
  --verde-800: #164229;
  --verde-600: #1f6b3d;
  --verde-500: #23803f;
  --verde-100: #e3efe6;
  --oro: #c9a24b;
  --oro-claro: #e8d39c;
  --crema: #f7f3ea;
  --crema-2: #efe8d8;
  --papel: #fffdf8;
  --tinta: #16201a;
  --gris: #5a655e;
  --linea: #e2dccd;
  --radio: 18px;
  --sombra: 0 1px 2px rgba(16,48,31,.06), 0 12px 32px -12px rgba(16,48,31,.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ancho: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--crema); color: var(--tinta); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-600); text-decoration: none; }
a:hover { color: var(--verde-800); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--verde-900); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Botones */
.boton, .button, button.button, input.button, .wc-block-components-button, .woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1;
  background: var(--verde-600); color: #fff !important; transition: transform .15s, background .15s, box-shadow .15s;
}
.boton:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--verde-800); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(16,48,31,.5); }
.boton--oro, .woocommerce a.button.alt, .woocommerce button.button.alt, .single_add_to_cart_button { background: var(--oro) !important; color: var(--verde-950) !important; }
.boton--oro:hover, .woocommerce button.button.alt:hover { background: var(--oro-claro) !important; }
.boton--linea { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.boton--linea:hover { background: rgba(255,255,255,.1); }
.etiqueta { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); margin-bottom: 1rem; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(247,243,234,.88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.cabecera.con-sombra { border-bottom-color: var(--linea); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.cabecera__logo img { height: 34px; width: auto; }
.menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--tinta); font-weight: 500; font-size: .96rem; }
.menu a:hover { color: var(--verde-600); }
.cabecera__acciones { display: flex; align-items: center; gap: 14px; }
.carrito { position: relative; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; color: var(--verde-900); }
.carrito:hover { background: var(--crema-2); }
.carrito__n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--oro); color: var(--verde-950); font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.boton-menu { display: none; background: none; border: 0; padding: 8px; color: var(--verde-900); cursor: pointer; }

/* Portada */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #2a7a4a 0%, transparent 60%), linear-gradient(160deg, var(--verde-900), var(--verde-950)); color: #e9efe9; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 0%, transparent 80%); pointer-events: none; }
.hero__fila { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 96px 0 110px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--oro-claro); }
.hero__texto p { font-size: 1.15rem; color: #c9d6cd; max-width: 34em; }
.hero__botones { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.hero__sellos { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: #b8c8bd; list-style: none; padding: 0; margin: 0; }
.hero__sellos li::before { content: "✓"; color: var(--oro); font-weight: 700; margin-right: 8px; }
.hero__collage { position: relative; height: 470px; }
.hero__collage .tarjeta-flotante { position: absolute; width: 62%; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.12); background: var(--verde-800); }
.hero__collage .tarjeta-flotante img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero__collage .tarjeta-flotante span { display: block; padding: 12px 14px; font-size: .85rem; font-weight: 600; color: #fff; background: rgba(11,33,24,.9); }
.hero__collage .t1 { top: 0; right: 0; transform: rotate(3deg); }
.hero__collage .t2 { top: 120px; left: 0; transform: rotate(-4deg); z-index: 2; }
.hero__collage .t3 { bottom: 0; right: 8%; transform: rotate(1.5deg); }
.hero__collage .insignia { position: absolute; z-index: 3; left: 46%; top: 44%; width: 112px; height: 112px; border-radius: 50%; background: var(--oro); color: var(--verde-950); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: .78rem; line-height: 1.15; box-shadow: 0 16px 30px -10px rgba(0,0,0,.5); }
.hero__collage .insignia b { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }

/* Cifras */
.cifras { background: var(--papel); border-bottom: 1px solid var(--linea); }
.cifras__fila { display: grid; grid-template-columns: repeat(4, 1fr); }
.cifra { padding: 34px 24px; text-align: center; border-right: 1px solid var(--linea); }
.cifra:last-child { border-right: 0; }
.cifra b { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 500; color: var(--verde-800); line-height: 1.1; }
.cifra span { font-size: .92rem; color: var(--gris); }

/* Secciones */
.seccion { padding: 104px 0; }
.seccion--papel { background: var(--papel); }
.seccion--verde { background: var(--verde-900); color: #dfe8e1; }
.seccion--verde h2, .seccion--verde h3 { color: #fff; }
.cabeza { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.cabeza p { color: var(--gris); font-size: 1.1rem; }
.seccion--verde .cabeza p { color: #b8c8bd; }

.rejilla { display: grid; gap: 24px; }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.rejilla--4 { grid-template-columns: repeat(4, 1fr); }

.caja { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 30px; transition: transform .2s, box-shadow .2s; }
.caja:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.caja__icono { width: 52px; height: 52px; border-radius: 14px; background: var(--verde-100); color: var(--verde-600); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.caja__icono svg { width: 26px; height: 26px; }
.caja p { color: var(--gris); margin: 0; font-size: .98rem; }

/* Pasos */
.pasos { counter-reset: paso; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.paso { position: relative; padding: 28px 24px; border-radius: var(--radio); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.paso::before { counter-increment: paso; content: counter(paso, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--oro); line-height: 1; margin-bottom: 18px; }
.paso p { color: #b8c8bd; margin: 0; font-size: .97rem; }
.nota-tecnica { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--radio); background: rgba(201,162,75,.1); border: 1px solid rgba(201,162,75,.35); color: #e6dcc2; font-size: .98rem; }
.nota-tecnica svg { width: 30px; height: 30px; color: var(--oro); }

/* Catálogo */
.familias { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.familias a { padding: .55em 1.1em; border-radius: 999px; background: var(--papel); border: 1px solid var(--linea); color: var(--tinta); font-size: .92rem; font-weight: 500; }
.familias a:hover { border-color: var(--verde-600); color: var(--verde-600); }
.familias a small { color: var(--gris); margin-left: 4px; }

.cursos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.curso { display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.curso:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.curso__img { position: relative; aspect-ratio: 16/10; background: var(--verde-800); overflow: hidden; }
.curso__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.curso:hover .curso__img img { transform: scale(1.04); }
.curso__horas { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(11,33,24,.85); color: #fff; font-size: .78rem; font-weight: 600; }
.curso__cuerpo { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.curso__familia { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--verde-600); margin-bottom: 8px; }
.curso__titulo { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; color: var(--verde-950); line-height: 1.25; margin: 0 0 14px; }
.curso__pie { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--linea); }
.curso__precio { font-weight: 700; color: var(--verde-900); font-size: 1.15rem; }
.curso__precio small { font-weight: 500; color: var(--gris); font-size: .78rem; }
.curso__ver { font-size: .88rem; font-weight: 600; }
.centro { text-align: center; margin-top: 48px; }

/* Precio */
.precio { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.precio__tarjeta { background: var(--verde-900); color: #dfe8e1; border-radius: 24px; padding: 44px; position: relative; overflow: hidden; box-shadow: var(--sombra); }
.precio__tarjeta::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,75,.35), transparent 70%); }
.precio__cifra { font-family: var(--serif); font-size: 4.6rem; color: #fff; line-height: 1; }
.precio__cifra small { font-family: var(--sans); font-size: 1rem; color: var(--oro-claro); margin-left: 6px; }
.precio__lista { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.precio__lista li { display: flex; gap: 12px; }
.precio__lista li::before { content: "✓"; color: var(--oro); font-weight: 700; }
.calculo { margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.06); font-size: .95rem; }
.calculo b { color: #fff; }

/* Para quién */
.publico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.publico .caja h3 { margin-top: 0; }

/* Preguntas */
.preguntas { max-width: 820px; margin: 0 auto; }
.preguntas details { border-bottom: 1px solid var(--linea); padding: 6px 0; }
.preguntas summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-family: var(--serif); font-size: 1.22rem; color: var(--verde-900); }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--sans); font-size: 1.6rem; color: var(--verde-600); transition: transform .2s; }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { color: var(--gris); padding-right: 40px; }

/* Llamada final */
.llamada { background: linear-gradient(135deg, var(--verde-800), var(--verde-950)); border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; color: #dfe8e1; position: relative; overflow: hidden; }
.llamada h2 { color: #fff; }
.llamada__contacto { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 26px; }
.llamada__contacto a { color: #fff; font-weight: 600; }
.llamada__contacto p { margin: 0 0 8px; }

/* Pie */
.pie { background: var(--verde-950); color: #9fb3a6; padding: 72px 0 32px; font-size: .94rem; margin-top: 104px; }
.pie__fila { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.pie h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pie a { color: #cfdcd3; }
.pie a:hover { color: #fff; }
.pie__marca { font-family: var(--serif); font-size: 1.7rem; color: #fff; margin-bottom: 14px; }
.pie__marca em { color: var(--oro-claro); }
.pie__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Páginas y tienda */
.cabecera-pagina { background: var(--verde-900); color: #cfdcd3; padding: 72px 0 64px; }
.cabecera-pagina h1 { color: #fff; margin: 0; }
.cabecera-pagina p { margin: 12px 0 0; max-width: 40em; }
.contenido { padding-top: 64px; }
.contenido--estrecho { max-width: 820px; }
.entrada h2 { margin-top: 1.6em; }

.woocommerce .woocommerce-breadcrumb { font-size: .85rem; color: var(--gris); margin-bottom: 24px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px; color: var(--gris); font-size: .92rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products.cursos li.product { width: auto; float: none; margin: 0; }
.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce select, .woocommerce input.input-text, .woocommerce textarea, .woocommerce .quantity .qty { border: 1px solid var(--linea); border-radius: 12px; padding: .7em .9em; font: inherit; background: #fff; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 14px; border-top-color: var(--verde-600) !important; background: var(--papel) !important; }

/* Ficha de curso */
.ficha { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.ficha__img { border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); background: var(--verde-800); }
.ficha__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ficha__compra { position: sticky; top: 100px; background: var(--papel); border: 1px solid var(--linea); border-radius: 22px; padding: 32px; box-shadow: var(--sombra); }
.ficha__compra h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.ficha__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 24px; }
.ficha__dato { background: var(--crema); border-radius: 12px; padding: 12px 14px; }
.ficha__dato b { display: block; color: var(--verde-900); font-size: 1.05rem; }
.ficha__dato span { font-size: .8rem; color: var(--gris); }
.ficha__compra .price { font-family: var(--serif); font-size: 2.2rem; color: var(--verde-900) !important; }
.ficha__compra .price small { font-family: var(--sans); font-size: .9rem; color: var(--gris); }
.ficha__compra form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.ficha__compra .single_add_to_cart_button { flex: 1; min-height: 52px; }
.ficha__garantias { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: .9rem; color: var(--gris); }
.ficha__garantias li::before { content: "✓"; color: var(--verde-600); font-weight: 700; margin-right: 8px; }
.ficha__descripcion { margin-top: 48px; }
.ficha__descripcion h2 { font-size: 1.8rem; }
.indice { counter-reset: mod; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.indice li { counter-increment: mod; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; padding: 14px 18px; }
.indice li::before { content: counter(mod, decimal-leading-zero); font-family: var(--serif); font-size: 1.4rem; color: var(--oro); }
.indice li span { color: var(--gris); font-size: .88rem; white-space: nowrap; }

/* Adaptable */
@media (max-width: 1080px) {
  .cursos { grid-template-columns: repeat(3, 1fr); }
  .rejilla--4, .pasos { grid-template-columns: repeat(2, 1fr); }
  .pie__fila { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu, .cabecera__acciones .boton { display: none; }
  .boton-menu { display: inline-flex; }
  .cabecera.abierta .menu { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--crema); padding: 20px 24px 28px; border-bottom: 1px solid var(--linea); gap: 18px; }
  .hero__fila, .precio, .llamada, .ficha { grid-template-columns: 1fr; }
  .hero__fila { padding: 64px 0 72px; gap: 40px; }
  .hero__collage { height: 340px; }
  .cifras__fila { grid-template-columns: repeat(2, 1fr); }
  .cifra:nth-child(2) { border-right: 0; }
  .cifra:nth-child(-n+2) { border-bottom: 1px solid var(--linea); }
  .rejilla--3, .publico { grid-template-columns: 1fr; }
  .cursos { grid-template-columns: repeat(2, 1fr); }
  .seccion { padding: 72px 0; }
  .llamada { padding: 36px 26px; }
  .ficha__compra { position: static; }
}
@media (max-width: 560px) {
  .contenedor { padding: 0 16px; }
  .cursos, .rejilla--4, .pasos, .pie__fila { grid-template-columns: 1fr; }
  .hero__collage { height: 280px; }
  .hero__collage .insignia { width: 88px; height: 88px; font-size: .68rem; }
  .hero__collage .insignia b { font-size: 1.3rem; }
  .precio__tarjeta { padding: 30px 24px; }
  .precio__cifra { font-size: 3.6rem; }
  .indice li { grid-template-columns: 40px 1fr; }
  .indice li span { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.etiqueta-alumnos { width: 100%; font-size: .85rem; font-weight: 600; color: var(--verde-900); }
.ficha__compra .quantity .qty { width: 96px; min-height: 52px; text-align: center; font-size: 1.05rem; }
.entrada .alignwide, .entrada .alignfull, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0; padding-right: 0; }
