/* Alhambra Labs v0.2: navigation, the new home blocks and the subpages (precios, automatizaciones,
   sobre mí). Same tokens, type and hairlines as styles.css and secciones.css. */

/* Skip link and main menu */
.saltar { position: absolute; left: 12px; top: -48px; z-index: 20; padding: 10px 14px; background: var(--tinta); color: var(--estuco); font-family: var(--display); font-weight: 600; text-decoration: none; }
.saltar:focus { top: 12px; color: var(--estuco); }
.top { flex-wrap: wrap; row-gap: 6px; }
.menu { display: flex; flex-wrap: wrap; gap: 0 18px; order: 3; flex-basis: 100%; }
.menu a { font-family: var(--display); font-weight: 600; font-size: 0.9375rem; text-decoration: none; padding: 5px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--rojo); border-bottom-color: currentColor; }
.menu a[aria-current="page"] { color: var(--rojo); border-bottom-color: var(--rojo); }
@media (min-width: 900px) {
  .top { flex-wrap: nowrap; }
  .menu { order: 0; flex-basis: auto; margin-left: auto; margin-right: 32px; gap: 28px; }
  .menu a { font-size: 1rem; }
}
/* six items since /trabajos/ (25-09): tighter between 900 and 1199 px so the menu stays on one line */
@media (min-width: 900px) and (max-width: 1199px) {
  .menu { gap: 18px; margin-right: 20px; }
  .menu a { font-size: 0.9375rem; }
}

/* Home: what the business gets */
.valor { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; }
@media (min-width: 720px) { .valor { grid-template-columns: repeat(3, 1fr); } }
.valor { align-items: start; }
.valor li { border-top: 3px solid var(--rojo); padding-top: 12px; }
.valor h3 { margin: 0; font-size: 1.1875rem; color: inherit; }
/* v0.2.3 (Alex, 2026-09-24): the three promises stay visible and each paragraph folds (arco) */
.valor .desp { padding: 0; }
.valor .desp > summary { padding-left: 26px; }
.valor p { margin: 0; }
.valor-pie { margin: 1.5rem 0 0; font-family: var(--display); font-weight: 600; max-width: var(--measure); }

/* The two plans: one card each, price and fee together, its own action */
.planes-v2 { display: grid; gap: 18px; margin: 0 0 1.75rem; }
@media (min-width: 720px) { .planes-v2 { grid-template-columns: 1fr 1fr; } }
.plan-card { background: var(--blanco); border-top: 4px solid var(--rojo); padding: 20px 22px 22px; display: flex; flex-direction: column; }
.plan-card h3 { margin: 0 0 0.5rem; font-size: 1.3125rem; }
.plan-precio { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; font-family: var(--display); }
.plan-precio b { font-weight: 700; font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1; color: var(--rojo); letter-spacing: -0.03em; }
.plan-precio span { font-weight: 700; font-size: 1.3125rem; }
.plan-card .plan-iva { margin: 4px 0 1rem; font-size: 1rem; }
.plan-card .plan-para { font-weight: 600; }
.plan-card .btn { margin-top: auto; align-self: flex-start; }
.plan-card p + .btn { margin-top: auto; }
.plan-card .plan-para { margin-bottom: 1.25rem; }
.cuota-nota { border-left: 5px solid var(--rojo); padding: 2px 0 2px 18px; max-width: var(--measure); margin: 1.5rem 0 0; }
.cuota-nota p { margin: 0 0 0.6em; }
.enlace-mas { margin: 1.25rem 0 0; }
.enlace-mas a, .enlace-claro { font-family: var(--display); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* How we work: three steps under their day marks */
.pasos-v2 { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--sillar); }
@media (min-width: 720px) { .pasos-v2 { grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--sillar); } }
.pasos-v2 > li { padding: 16px 16px 18px; border-bottom: 1px solid var(--sillar); }
@media (min-width: 720px) { .pasos-v2 > li { border-right: 1px solid var(--sillar); } }
.paso-dia { margin: 0 0 8px; font-family: var(--display); color: var(--rojo); display: flex; align-items: baseline; gap: 6px; }
.paso-dia span { font-weight: 600; font-size: 1rem; }
.paso-dia b { font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; }
.pasos-v2 h3 { margin: 0 0 0.4em; font-size: 1.1875rem; }
.pasos-v2 p:last-child { margin: 0; }
.pasos-v2 .paso-fin { background: var(--rojo); color: var(--blanco); }
.pasos-v2 .paso-fin .paso-dia, .pasos-v2 .paso-fin h3 { color: var(--blanco); }
.plazo-v2 { display: grid; gap: 18px 32px; align-items: center; }
@media (min-width: 720px) { .plazo-v2 { grid-template-columns: minmax(0, 22rem) 1fr; } }
.plazo-v2 p { margin: 0 0 0.6em; }
.plazo-v2 a { font-family: var(--display); font-weight: 600; }

/* The almagra band, now a short invitation to the automations page */
.banda .banda-col { max-width: 46rem; }
.banda .cta-row { margin-top: 1.5rem; }
.enlace-claro, .banda .enlace-claro { color: var(--blanco); }

/* Who: portrait slot and text side by side at desktop */
.quien-v2 { display: grid; gap: 24px 40px; align-items: start; }
@media (min-width: 720px) { .quien-v2 { grid-template-columns: minmax(200px, 280px) 1fr; } }
/* phones: the name and what I do first, the portrait after it */
@media (max-width: 719px) { .quien-v2 .cromo { order: 2; } }
.quien-v2 h2 { margin-top: 0; }
/* the portrait itself is the trading card defined with the about page below (.cromo) */

/* Final contact block */
.contacto-final { padding: var(--section) 0; border-top: 1px solid var(--sillar); }
.contacto-caja { background: var(--blanco); border-top: 5px solid var(--rojo); padding: clamp(24px, 4vw, 48px); }
.contacto-caja h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.4em; }
.contacto-caja > p { max-width: 52ch; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.contacto-caja .cta-row { margin-top: 1.25rem; }
.contacto-correo { margin: 1rem 0 0; }
/* a contact box with no form (/diseno-web-granada/): the words left, the buttons right, so the box
   never shows a heading with half of it empty */
.caja-corta > div > p { max-width: 52ch; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.caja-corta > div > p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .caja-corta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: center; }
  .caja-corta .cta-row { margin-top: 0; }
}

/* Subpages: heading block, in-page index, sections */
.pagina-cabeza { padding: clamp(20px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--sillar); }
.pagina-k { margin: 0 0 8px; font-family: var(--display); font-weight: 600; color: var(--rojo); }
.pagina-cabeza h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 20ch; margin-bottom: 0.4em; }
.pagina-cabeza .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 60ch; }
.precio-linea { font-family: var(--display); font-size: 1.1875rem; margin: 0.5em 0 0; }
.precio-linea strong { color: var(--rojo); font-size: 1.75rem; }
/* in-page index as small pills (2026-10-14): they read as a menu of this page, not as running links */
.indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.indice a { display: inline-flex; align-items: center; gap: 0.45em; min-height: 36px; padding: 0 14px; font-family: var(--display); font-weight: 600; font-size: 0.9375rem; text-decoration: none; border: 1px solid var(--sillar); border-radius: 999px; background: color-mix(in srgb, var(--blanco) 60%, var(--estuco)); transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.indice a::after { content: "↓"; color: var(--rojo); font-weight: 700; }
.indice a:hover { color: var(--rojo); border-color: var(--rojo); background: var(--blanco); }
@media (prefers-reduced-motion: reduce) { .indice a { transition: none; } }
.seccion { padding: var(--section) 0 0; }
.seccion > h2 { margin-bottom: 0.7em; }
.seccion:last-of-type { padding-bottom: var(--section); }
.nota-ancha { max-width: var(--measure); margin: 1.25rem 0 0; }
.grupos-v2 { display: grid; gap: 8px 40px; }
@media (min-width: 900px) { .grupos-v2 { grid-template-columns: repeat(3, 1fr); } }
.grupos-v2 h3 { font-size: 1.125rem; color: var(--rojo); margin: 0.5rem 0 0.4rem; }

/* Fees: each one with its price, what it is for and what it covers */
.cuotas-v2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--sillar); }
.cuotas-v2 > li { display: grid; gap: 4px 28px; padding: 16px 0; border-bottom: 1px solid var(--sillar); }
@media (min-width: 720px) { .cuotas-v2 > li { grid-template-columns: 9rem 16rem 1fr; align-items: baseline; } }
.cuota-precio { margin: 0; font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--rojo); letter-spacing: -0.02em; }
.cuota-precio small { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.cuotas-v2 h3 { margin: 0; font-size: 1.125rem; }
.cuotas-v2 li > p:last-child { margin: 0; max-width: var(--measure); }

/* Extras: visible table, scrolls inside its own box on phones */
.tabla { overflow-x: auto; margin: 0; }
.tabla:focus-visible { outline-offset: 2px; }
.extras-tabla { width: 100%; min-width: 40rem; border-collapse: collapse; background: var(--blanco); }
.extras-tabla th, .extras-tabla td { text-align: left; vertical-align: top; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--sillar); }
.extras-tabla thead th { font-family: var(--display); font-weight: 700; border-bottom: 3px solid var(--rojo); }
.extras-tabla tbody th { font-family: var(--display); font-weight: 600; width: 22%; }
.extras-tabla .num-col { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 700; color: var(--rojo); }
.extras-tabla thead .num-col { color: var(--tinta); }

/* Conditions and automation facts: term on the left, plain text on the right */
.condiciones { margin: 0; border-top: 1px solid var(--sillar); }
.condiciones > div { display: grid; gap: 2px 28px; padding: 12px 0; border-bottom: 1px solid var(--sillar); }
@media (min-width: 720px) { .condiciones > div { grid-template-columns: 14rem 1fr; } }
.condiciones dt { font-family: var(--display); font-weight: 600; }
.condiciones dd { margin: 0; max-width: var(--measure); }

/* Automations: three cards with a flow */
.autos { display: grid; gap: 18px; }
@media (min-width: 900px) { .autos { grid-template-columns: repeat(3, 1fr); } }
.auto-card { background: var(--blanco); border-top: 4px solid var(--rojo); padding: 18px 20px 20px; display: flex; flex-direction: column; }
.auto-card h3 { margin: 0 0 0.8rem; font-size: 1.25rem; }
.flujo { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: paso; }
.flujo li { counter-increment: paso; position: relative; padding: 0 0 14px 34px; }
.flujo li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; background: var(--rojo); color: var(--blanco); font-family: var(--display); font-weight: 700; font-size: 0.875rem; }
.flujo li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--sillar); }
.auto-datos { margin: 0 0 1.25rem; }
.auto-datos div { padding: 8px 0; border-top: 1px solid var(--sillar); }
.auto-datos dt { font-family: var(--display); font-weight: 600; }
.auto-datos dd { margin: 2px 0 0; }
.auto-card .btn { margin-top: auto; align-self: flex-start; }
.btn.btn-borde, .btn.btn-borde:hover { background: transparent; color: var(--rojo); box-shadow: inset 0 0 0 2px var(--rojo); }
.btn.btn-borde:hover { background: var(--estuco); }
.aparte { display: grid; gap: 28px 48px; }
@media (min-width: 900px) { .aparte { grid-template-columns: 1fr 1fr; } }
.aparte h2 { font-size: 1.5rem; }
.aparte > div { border-top: 3px solid var(--rojo); padding-top: 14px; }

/* About page */
.sobre { display: grid; gap: 24px 48px; padding: clamp(20px, 4vw, 48px) 0 var(--section); align-items: start; }
@media (min-width: 900px) { .sobre { grid-template-columns: minmax(240px, 340px) 1fr; } }
.sobre h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 0.3em; }
.sobre-texto { max-width: var(--measure); }
.sobre-texto .lead { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); }

/* The portrait as a trading card: photo and a red name strip on the front, the brand's mark on
   almagra on the back. It spins once when it comes into view (script.js) and lands face up; the
   markup is already face up, so without JS nothing moves. */
.cromo { margin: 0; width: 100%; max-width: 260px; perspective: 1400px; }
@media (min-width: 900px) { .cromo { max-width: 340px; } }
.cromo-giro { position: relative; transform-style: preserve-3d; }
.cromo-cara { backface-visibility: hidden; border-radius: 12px; box-shadow: 0 18px 36px -22px rgba(30, 24, 25, 0.55), 0 0 0 1px var(--sillar); }
.cromo-frente { background: var(--blanco); padding: 10px 10px 0; overflow: hidden; }
.cromo-frente img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px 6px 0 0; }
.cromo-nombre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 -10px; padding: 11px 16px 12px; background: var(--rojo); color: var(--blanco); font-family: var(--display); font-weight: 700; font-size: 1.0625rem; }
.cromo-nombre span { font-weight: 600; font-size: 0.875rem; }
.cromo-dorso { position: absolute; inset: 0; transform: rotateY(180deg); display: grid; place-items: center; background: var(--almagra); box-shadow: inset 0 0 0 10px var(--blanco), inset 0 0 0 11px var(--sillar), 0 18px 36px -22px rgba(30, 24, 25, 0.55); }
.cromo-dorso img { width: 34%; height: auto; }
/* a flick: fast out of the hand, a turn and a half, slowing until it lands face up */
.cromo.gira .cromo-giro { animation: cromo-gira 1.6s cubic-bezier(0.16, 0.8, 0.24, 1) both; }
@keyframes cromo-gira {
  from { transform: translateY(14px) rotateZ(-4deg) rotateY(-540deg); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cromo.gira .cromo-giro { animation: cromo-aparece 0.4s ease-out both; }
  @keyframes cromo-aparece { from { opacity: 0; } to { opacity: 1; } }
}

/* Footer v0.2: logo, contact and the two link lists in columns at desktop */
.pie nav { flex-direction: column; gap: 6px; }
@media (max-width: 719px) { .pie nav { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; } }
@media (min-width: 720px) {
  .pie { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 48px; }
  .pie nav { justify-content: flex-start; }
}

/* space between the last subpage section and the contact block */
.seccion + .contacto-final, .par-secciones + .contacto-final { margin-top: var(--section); }
/* Two sections side by side from tablet up: the steps left, the aside right */
@media (min-width: 720px) {
  .par-secciones { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 88px); align-items: start; }
}

/* Prices page v0.2 (GPT-6 round 1): a strapwork strip under the page head, the extras as stacked
   blocks on phones, the guarantee as the stamp, the base fee in labelled parts */
.pagina-cabeza { position: relative; }
.pagina-cabeza::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 24px; background: var(--rojo); opacity: 0.55;
  -webkit-mask: url("/cadena-h.svg") left center / 24px 24px repeat-x; mask: url("/cadena-h.svg") left center / 24px 24px repeat-x; }
.cuota-partes p { margin: 0 0 0.5em; max-width: var(--measure); }
.cuotas-v2 li > .cuota-partes p:last-child { margin: 0; }
.cond-sello dd { display: grid; gap: 10px; }
.cond-sello .sello { max-width: 420px; }
.cond-sello dd > p:last-child { margin: 0; }
@media (max-width: 719px) {
  .pagina-cabeza { padding-top: 12px; }
  .pagina-cabeza .lead { margin-bottom: 0.5em; }
  .tabla .extras-tabla { min-width: 0; }
  .extras-tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .extras-tabla, .extras-tabla tbody, .extras-tabla tr, .extras-tabla th, .extras-tabla td { display: block; width: auto; }
  .extras-tabla tr { padding: 12px 14px; border-bottom: 1px solid var(--sillar); }
  .extras-tabla th, .extras-tabla td { padding: 0; border: 0; }
  .extras-tabla tbody th { width: auto; font-size: 1.125rem; margin-bottom: 4px; }
  .extras-tabla td { margin-top: 6px; }
  .extras-tabla td::before { content: attr(data-k); display: block; font-family: var(--display); font-weight: 600; font-size: 0.875rem; color: var(--tinta); }
  .extras-tabla .num-col { text-align: left; font-size: 1.25rem; }
}

/* v0.2 round 2: plan schemes drawn with the brand's single stroke, bigger monthly fee, the band's
   short list, a 2-column menu with 44 px targets on phones, extras with name and price first */
.plan-card { position: relative; }
.plan-esquema { display: block; width: 120px; height: auto; color: var(--rojo); margin: 0 0 10px; }
.plan-precio span { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.lista-banda { margin: 0 0 1em; padding-left: 1.2em; }
.lista-banda li { margin-bottom: 0.25em; }
/* Phones and tablets (2026-10-14): the menu as compact pills, two rows of three,
   instead of a two-column grid three rows tall, so the h1 rises into the first screen. */
@media (max-width: 899px) {
  .top { padding: 12px 0 10px; row-gap: 10px; }
  .menu { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }   /* six items: two rows of three */
  .menu a { display: flex; justify-content: center; align-items: center; min-height: 36px; padding: 0 4px; font-size: 0.8125rem; letter-spacing: -0.01em; white-space: nowrap; border: 1px solid var(--sillar); border-radius: 999px; background: color-mix(in srgb, var(--blanco) 55%, var(--estuco)); }
  .menu a:hover { border-color: var(--rojo); }
  .menu a[aria-current="page"] { color: var(--blanco); background: var(--rojo); border-color: var(--rojo); }
}
@media (max-width: 719px) {
  .quien-v2 .cromo { max-width: 260px; }
  .extras-tabla tr { display: flex; flex-direction: column; }
  .extras-tabla tbody th { order: 1; }
  .extras-tabla .num-col { order: 2; margin-top: 2px; }
  .extras-tabla .num-col::before { display: none; }
  .extras-tabla td:not(.num-col) { order: 3; }
}

/* v0.2 round 3: the fee on a sillar band for rhythm, conditions in three groups, a tighter prices
   head on phones */
.seccion-sillar { background: var(--sillar); margin-top: var(--section); padding-bottom: var(--section); }
.seccion-sillar .cuotas-v2, .seccion-sillar .cuotas-v2 > li { border-color: rgb(30 24 25 / 0.18); }
.cond-grupo { font-size: 1.1875rem; color: var(--rojo); margin: 1.75rem 0 0.4rem; }
@media (max-width: 719px) {
  .pagina-cabeza { padding-bottom: 14px; }
  .pagina-cabeza h1 { font-size: 2rem; margin-bottom: 0.3em; }
  .pagina-cabeza .lead { font-size: 1rem; }
  .indice { margin-top: 0.6rem; gap: 4px 16px; }
  .seccion#planes { padding-top: 24px; }
}
@media (max-width: 719px) { .plan-esquema { width: 64px; margin-bottom: 6px; } }

/* ---- Disclosures v0.2.1 (Alex, 2026-09-24: more text folded, each kind with its own gesture) ----
   .desp is the compact disclosure. Its marker sits on the left and says what opens: a square that
   fills (lista), the brand's eight-point star that turns (tira), a calendar leaf that flips (hoja),
   an arrow that turns down (flujo), a Nazarí arch that fills from the floor up (arco). The prices
   list (precio) keeps the +/− on the right. The content gestures live in script.js; without JS
   or with reduced motion it opens instantly. */
details.desp { border-bottom: 0; padding: 0.35em 0; max-width: var(--measure); }
.desp > summary { font-size: 1rem; color: var(--tinta); }
.desp:not([data-anim="precio"]) > summary { padding: 4px 0 4px 30px; }
.desp:not([data-anim="precio"]) > summary::before,
.desp:not([data-anim="precio"]) > summary::after { right: auto; left: 0; width: auto; height: auto; margin: 0; background: none; }
.desp:not([data-anim="precio"]) > summary::after { display: none; }
.desp:not([data-anim="precio"]) > summary:hover { color: var(--rojo); }
.desp > :not(summary) { margin-top: 0.6em; }
/* lista: a square that fills */
.desp[data-anim="lista"] > summary::before { top: calc(0.5em + 1px); width: 14px; height: 14px; border: 2px solid var(--rojo); transform: none; }
.desp[data-anim="lista"] > summary::after { display: block; top: calc(0.5em + 5px); left: 4px; width: 6px; height: 6px; background: var(--rojo); transform: scale(0.2); }
.desp[data-anim="lista"][open]:not(.cerrando) > summary::after { transform: scale(1); }
/* tira: the eight-point star turns an eighth */
.desp[data-anim="tira"] > summary::before { top: 0.35em; width: 20px; height: 20px; background: url("/lazo.svg") center / 20px 20px no-repeat; transform: none; }
.desp[data-anim="tira"][open]:not(.cerrando) > summary::before { transform: rotate(45deg); }
/* hoja: a calendar leaf, thick top edge, that flips */
.desp[data-anim="hoja"] > summary::before { top: calc(0.5em - 1px); width: 14px; height: 16px; border: 2px solid var(--rojo); border-top-width: 5px; transform: perspective(60px) rotateX(0deg); }
.desp[data-anim="hoja"][open]:not(.cerrando) > summary::before { transform: perspective(60px) rotateX(180deg); }
.desp[data-anim="hoja"] > :not(summary) { transform-origin: top center; }
/* flujo: an arrow that turns from «next» to «down» */
.desp[data-anim="flujo"] > summary::before { top: calc(0.5em + 2px); left: 2px; width: 9px; height: 9px; border-right: 2px solid var(--rojo); border-bottom: 2px solid var(--rojo); transform: rotate(-45deg); }
.desp[data-anim="flujo"][open]:not(.cerrando) > summary::before { transform: rotate(45deg); }
/* arco: a round arch, the doorway of the three promises; its inside rises from a floor line */
.desp[data-anim="arco"] > summary::before { top: 8px; left: 1px; width: 13px; height: 16px; border: 2px solid var(--rojo); border-bottom-width: 3px; border-radius: 7px 7px 0 0; transform: none; }
.desp[data-anim="arco"] > summary::after { display: block; top: 12px; left: 5px; width: 5px; height: 9px; border-radius: 3px 3px 0 0; background: var(--rojo); transform-origin: bottom center; transform: scaleY(0.12); }
.desp[data-anim="arco"][open]:not(.cerrando) > summary::after { transform: scaleY(1); }
.banda .desp > summary { color: var(--blanco); }
.banda .desp[data-anim="flujo"] > summary::before { background: none; border-color: var(--blanco); }
@media (prefers-reduced-motion: reduce) { .desp > summary::before, .desp > summary::after { transition: none; } }

/* the fee note and the pause keep one visible line, the rest folds */
.cuota-nota details.desp { margin-top: 0.2em; }
.plazo-v2 details.desp { align-self: center; }

/* prices: the extras as a price list, name and price always visible */
.extras-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sillar); background: var(--blanco); }
.extras-lista > li { border-bottom: 1px solid var(--sillar); }
.extras-lista details.desp { max-width: none; padding: 0; }
.extras-lista summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 44px 14px 16px; }
.extras-lista summary::before, .extras-lista summary::after { right: 16px; top: calc(14px + 0.8em); }
.ex-n { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; }
.ex-p { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; color: var(--rojo); }
.ex-d { margin: 0; padding: 0 16px 16px; display: grid; gap: 10px 32px; }
@media (min-width: 720px) { .ex-d { grid-template-columns: 1fr 1fr; } }
.ex-d dt { font-family: var(--display); font-weight: 600; font-size: 0.9375rem; }
.ex-d dd { margin: 2px 0 0; }

/* prices: every condition opens from its title; the guarantee stamp stays in view */
.condiciones-v3 { border-top: 1px solid var(--sillar); }
.condiciones-v3 details.desp { max-width: none; border-bottom: 1px solid var(--sillar); padding: 8px 0; }
.condiciones-v3 summary { font-size: 1.0625rem; }
.cond-d { max-width: var(--measure); padding-left: 30px; }
.cond-d p { margin: 0 0 0.5em; }
.cond-sello-v { margin: 6px 0 14px; }
.cond-sello-v .sello { max-width: 420px; }

/* Header v0.2.2 (Alex, 2026-09-24): a round WhatsApp button in the brand's red next to the phone,
   and a bigger logo on desktop */
.acciones { display: flex; align-items: center; gap: 14px; }
.wa-redondo { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--rojo); color: var(--blanco); transition: background-color 160ms ease-out, transform 160ms ease-out; }
.wa-redondo:hover, .wa-redondo:focus-visible { background: var(--almagra); color: var(--blanco); }
.wa-redondo svg { display: block; width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) { .wa-redondo:hover { transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .wa-redondo { transition: none; } }
@media (min-width: 900px) { .top .logo img { height: 60px; } .wa-redondo { width: 48px; height: 48px; } .wa-redondo svg { width: 26px; height: 26px; } }

/* Works page (2026-09-25): fourteen first screens, each a shopfront in the grid. The frame shows the
   top of the phone screen; on fine pointers, hover or focus pans the capture up to the rest of it
   (144 of 844 px, hence 17.06 % of the image). Square corners and the rojo top edge, like every card. */
.trabajos-cabeza .lead { max-width: 60ch; }
.trabajos-nota { max-width: var(--measure); margin: 0.5rem 0 0; font-family: var(--display); font-weight: 600; }
.trabajos { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .trabajos { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; } }
@media (min-width: 1000px) { .trabajos { grid-template-columns: repeat(4, 1fr); } }
.trabajo-enlace { display: block; text-decoration: none; color: inherit; }
.trabajo-marco { display: block; aspect-ratio: 390 / 700; overflow: hidden; background: var(--sillar); border-top: 3px solid var(--rojo); }
/* 700 ms on purpose: the pan is a reveal of the rest of the screen, read while it moves, not a UI change */
.trabajo-marco img { display: block; width: 100%; height: auto; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .trabajo-enlace:hover .trabajo-marco img, .trabajo-enlace:focus-visible .trabajo-marco img { transform: translateY(-17.06%); }
}
@media (prefers-reduced-motion: reduce) { .trabajo-marco img { transition-duration: 1ms; } }
.trabajo-k { display: block; margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 0.9375rem; line-height: 1.3; color: var(--rojo); }
.trabajo-n { display: block; margin-top: 2px; font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.trabajo-enlace:hover .trabajo-n { color: var(--rojo); }

/* 2026-10-14: the diagnostic CTA in each subpage head, so it is on the first screen */
.cabeza-cta { margin-top: 1.25rem; }
.cabeza-cta .cta-hint { margin: 0; }

/* /automatizaciones/ «Cuándo tiene sentido y cuándo no» (2026-10-14): the yes on a white card with
   rojo ticks, the no on a muted ground with tinta dashes, so the two lists never read alike */
.cuando { gap: 16px 24px; }
.cuando > div { padding: 18px 22px 20px; }
.cuando .sub-h { margin-top: 0; }
.cuando-si { background: var(--blanco); border-top: 3px solid var(--rojo); }
.cuando-no { background: color-mix(in srgb, var(--tinta) 6%, var(--estuco)); border-top: 3px solid color-mix(in srgb, var(--tinta) 45%, transparent); }
.cuando-no .sub-h { color: color-mix(in srgb, var(--tinta) 80%, transparent); }
.cuando-lista { list-style: none; margin: 0; padding: 0; }
.cuando-lista li { position: relative; padding: 0.55em 0 0.55em 1.9em; border-top: 1px solid var(--sillar); }
.cuando-lista li:first-child { border-top: 0; }
.cuando-lista li::before { position: absolute; left: 0; top: 0.5em; width: 1.2em; text-align: center; font-family: var(--display); font-weight: 700; line-height: 1.6; }
.cuando-si li::before { content: "✓"; color: var(--rojo); }
.cuando-no li::before { content: "—"; color: color-mix(in srgb, var(--tinta) 55%, transparent); }
.cuando-no li { border-top-color: color-mix(in srgb, var(--tinta) 14%, transparent); }

/* /precios/ «Qué lleva siempre el presupuesto» as the written proposal itself (2026-10-14): a white
   sheet with the rojo top edge of every card and the strapwork strip of the page heads along its foot */
.hoja-encargo { position: relative; max-width: 52rem; background: var(--blanco); border-top: 5px solid var(--rojo); padding: clamp(18px, 3vw, 32px) clamp(18px, 3vw, 36px) clamp(36px, 4vw, 48px); box-shadow: 0 1px 0 var(--sillar), 0 18px 36px -24px rgba(30, 24, 25, 0.35); }
.hoja-encargo::after { content: ""; position: absolute; left: clamp(18px, 3vw, 36px); right: clamp(18px, 3vw, 36px); bottom: 12px; height: 16px; background: var(--rojo); opacity: 0.4;
  -webkit-mask: url("/cadena-h.svg") left center / 16px 16px repeat-x; mask: url("/cadena-h.svg") left center / 16px 16px repeat-x; }
.hoja-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0 0 14px; font-family: var(--display); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rojo); }
.hoja-k span + span { font-weight: 600; letter-spacing: 0.02em; text-transform: none; font-size: 0.875rem; color: color-mix(in srgb, var(--tinta) 72%, transparent); }
.hoja-encargo .condiciones { border-top: 2px solid var(--tinta); }
.hoja-encargo .condiciones > div:last-child { border-bottom: 0; }
.hoja-encargo .condiciones dt { color: var(--rojo); }

/* /diseno-web-granada/ (2026-10-14): what a web of mine has, beside a sketch of how it is ordered.
   The phone is drawn in CSS boxes (aria-hidden); the numbered list beside it carries the meaning. */
.web-incluye { display: grid; gap: 28px 56px; align-items: start; }
@media (min-width: 960px) { .web-incluye { grid-template-columns: minmax(0, 1fr) minmax(400px, 480px); } }
.anatomia { margin: 0; background: var(--blanco); border-top: 4px solid var(--rojo); padding: 18px 20px 22px; box-shadow: 0 18px 36px -26px rgba(30, 24, 25, 0.4); }
.anatomia-k { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rojo); }
.anatomia-cuerpo { display: grid; gap: 20px; justify-items: center; }
@media (min-width: 480px) { .anatomia-cuerpo { grid-template-columns: 168px 1fr; align-items: center; justify-items: stretch; } }
.movil { width: 168px; padding: 12px 10px 10px; border: 2px solid var(--tinta); border-radius: 24px; background: var(--estuco); display: grid; gap: 8px; }
.movil > div { position: relative; }
.m-n { position: absolute; left: -22px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--rojo); color: var(--blanco); font-family: var(--display); font-weight: 700; font-size: 0.75rem; line-height: 1; }
.movil-cab { display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--blanco); border-radius: 8px; }
.m-logo { width: 34px; height: 10px; background: var(--tinta); border-radius: 2px; margin-right: auto; }
.m-tel { font-family: var(--display); font-weight: 700; font-size: 0.625rem; line-height: 1; padding: 4px 6px; border: 1px solid var(--tinta); border-radius: 999px; }
.m-wa { width: 18px; height: 18px; border-radius: 50%; background: var(--rojo); }
.movil-hero { display: grid; gap: 5px; padding: 6px 4px; }
.m-l { height: 9px; background: color-mix(in srgb, var(--tinta) 75%, transparent); border-radius: 2px; }
.m-corta { width: 62%; }
.m-btn { width: 58%; height: 16px; margin-top: 3px; background: var(--rojo); border-radius: 3px; }
.movil-serv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.m-s { height: 38px; background: var(--blanco); border-top: 3px solid var(--rojo); }
.movil-form { display: grid; gap: 5px; padding: 8px 6px; background: var(--blanco); border-radius: 8px; }
.m-campo { height: 12px; border: 1.5px solid var(--sillar); }
.m-enviar { width: 50%; height: 14px; background: var(--rojo); }
.movil-destino { font-family: var(--display); font-weight: 600; font-size: 0.6875rem; line-height: 1.3; color: var(--rojo); text-align: center; padding-top: 2px; }
.anatomia-partes { list-style: none; margin: 0; padding: 0; counter-reset: parte; display: grid; gap: 14px; }
.anatomia-partes li { counter-increment: parte; position: relative; padding-left: 32px; font-size: 0.9375rem; line-height: 1.45; }
.anatomia-partes li::before { content: counter(parte); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rojo); color: var(--blanco); font-family: var(--display); font-weight: 700; font-size: 0.8125rem; }
.anatomia-partes b { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }

/* /sobre-mi/ on phones and tablets (2026-10-14): the eyebrow and the name first, then the card, then
   the text, so the page title is what the visitor lands on. The text column dissolves into the grid
   below 900 px only to reorder it; at desktop the card stays beside the text. */
@media (max-width: 899px) {
  .sobre { gap: 0; }
  .sobre-texto { display: contents; }
  .sobre .pagina-k, .sobre h1 { order: 0; }
  .sobre .cromo { order: 1; max-width: 240px; margin: 4px 0 24px; }
  .sobre-texto > :not(.pagina-k, h1) { order: 2; max-width: var(--measure); }
}
