/* Certica · Microapps por mes
   Se apoya en home.css (tokens, botones, secciones, notas) y suma solo lo propio de esta página. */

.cabecera nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- Hero: texto y mesa con las tres microapps ---------- */
.ma-hero { max-width: var(--ancho); margin: 0 auto; padding: 12px var(--gutter) 24px; display: grid; gap: 36px; }
.ma-hero h1 {
  font-size: clamp(2.6rem, 10vw, 5.2rem); font-weight: 800; font-variation-settings: "opsz" 96;
  line-height: .96; letter-spacing: -.035em; margin-bottom: 22px; max-width: 12em;
}
.ma-hero h1 .trazo { bottom: -.08em; }
.ma-hero .bajada { max-width: 34em; }
.pastilla {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 20px;
  background: var(--blanco); border: 2px solid var(--tinta); padding: 5px 12px 5px 5px;
  font-weight: 700; font-size: .9375rem; box-shadow: 2px 2px 0 rgba(31,26,23,.18);
}
.pastilla-sello {
  background: var(--rojo); color: #FFFDF8; padding: 3px 9px; transform: rotate(-2deg);
  font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
}
.ma-mesa {
  position: relative; height: 430px; overflow: hidden;
  background-color: var(--kraft);
  background-image: linear-gradient(rgba(31,26,23,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(31,26,23,.09) 1px, transparent 1px);
  background-size: 28px 28px; border: 2px solid var(--tinta);
}
.ma-mesa-papel { position: absolute; width: 62%; max-width: 300px; height: auto; filter: drop-shadow(5px 7px 0 rgba(31,26,23,.22)); }
.ma-mesa-cat { left: -6%; top: 6%; transform: rotate(-9deg); }
.ma-mesa-tur { right: -8%; bottom: 10%; transform: rotate(8deg); }
.ma-mesa-tel.telefono { position: absolute; left: 50%; top: 22px; width: 172px; margin-left: -86px; transform: rotate(-4deg); }
.ma-mesa-rotulo {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  background: var(--tinta); color: var(--papel); font-size: .8125rem; font-weight: 700; padding: 4px 9px; letter-spacing: .03em;
}
@media (min-width: 960px) {
  .ma-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; padding-top: 16px; }
  .ma-mesa { height: 520px; }
  .ma-mesa-tel.telefono { width: 210px; margin-left: -105px; top: 34px; }
}
.dos-lineas { padding-top: 32px; padding-bottom: 24px; }

/* Las dos líneas: dos papeles sobre la mesa */
.lineas { list-style: none; display: grid; gap: 26px; }
@media (min-width: 760px) { .lineas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.linea {
  position: relative; padding: 26px 24px 24px;
  background: var(--blanco); border: 2px solid var(--tinta); box-shadow: var(--sombra);
  transform: rotate(-.7deg);
}
.linea + .linea { transform: rotate(.6deg); }
.linea-actual { background: var(--postit); }
.linea-rotulo {
  display: block; font-family: var(--f-mano); font-weight: 600; font-size: 1.6rem; line-height: 1;
  color: var(--rojo); margin-bottom: 8px;
}
.linea h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; font-variation-settings: "opsz" 40; margin-bottom: 10px; }
.linea p { color: var(--tinta-suave); }
.linea-actual p { color: var(--tinta); }
.linea a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 700; }

/* ---------- Condiciones: la hoja del compromiso ---------- */
.compromiso-hoja {
  position: relative; max-width: 940px; margin: 0 auto;
  background: var(--blanco); border: 2px solid var(--tinta);
  padding: 44px clamp(20px, 5vw, 52px) 36px;
  box-shadow: 6px 8px 0 rgba(31,26,23,.2);
  transform: rotate(-.5deg);
  background-image: linear-gradient(transparent calc(100% - 1px), rgba(43,74,203,.14) 0);
  background-size: 100% 2.1em; background-position: 0 1.2em;
}
.compromiso-hoja .cinta-izq { left: 14%; }
.compromiso-hoja .cinta-der { left: 86%; transform: translateX(-50%) rotate(4deg); }
.compromiso-hoja h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.04; font-variation-settings: "opsz" 72; margin-bottom: 8px; }
.compromiso-intro { color: var(--tinta-suave); margin-bottom: 24px; max-width: 36em; }
.reglas { list-style: none; display: grid; gap: 16px 36px; }
@media (min-width: 760px) { .reglas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.regla { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.regla svg { width: 34px; height: 34px; margin-top: 2px; }
.regla svg path { fill: none; stroke: var(--rojo); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.regla svg rect { fill: var(--blanco); stroke: var(--tinta); stroke-width: 2.5; }
.regla b { display: block; font-family: var(--f-titulo); font-size: 1.3rem; line-height: 1.15; font-variation-settings: "opsz" 32; }
.regla span { color: var(--tinta-suave); font-size: 1.0625rem; }
.compromiso-firma { margin-top: 26px; font-family: var(--f-mano); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--birome); text-align: right; }

/* ---------- Las microapps ---------- */
.microapps-bajada { color: var(--tinta-suave); max-width: 36em; margin: -14px 0 40px; }
.apps { list-style: none; display: grid; gap: 48px; }
@media (min-width: 960px) {
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
  .app-sellos { grid-column: 1 / -1; }
}
.app { --giro: -.6deg; }
.app-catalogo { --giro: .8deg; }
.app-turnos { --giro: -1deg; }
.app-tarjeta {
  position: relative; height: 100%;
  display: grid; gap: 0;
  background: var(--blanco); border: 1px solid rgba(31,26,23,.14);
  padding: 12px 12px 24px; box-shadow: var(--sombra);
  transform: rotate(var(--giro));
}
@media (min-width: 960px) {
  .app-sellos .app-tarjeta { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 36px; padding: 14px 32px 14px 14px; align-items: center; }
}
.app-escena {
  position: relative; overflow: hidden; display: grid; place-items: center;
  min-height: 300px; padding: 28px 16px 52px;
  background-color: var(--kraft);
  background-image:
    linear-gradient(rgba(31,26,23,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,26,23,.09) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 2px solid var(--tinta);
}
.app-sellos .app-escena { padding-bottom: 60px; }
.app-escena .etiqueta { left: 10px; right: auto; max-width: calc(100% - 20px); }

/* Celular con la captura real del pase */
.telefono {
  position: relative; width: min(232px, 64vw); padding: 9px;
  background: #121214; border-radius: 34px;
  box-shadow: 0 0 0 2.5px var(--tinta), 8px 11px 0 rgba(31,26,23,.28);
  transform: rotate(-3deg);
}
.telefono img { width: 100%; height: auto; border-radius: 26px; }
@media (min-width: 960px) { .telefono { width: 250px; } }

/* Ilustraciones de papel */
.ilus { width: min(300px, 82%); height: auto; filter: drop-shadow(6px 8px 0 rgba(31,26,23,.22)); }

.app-texto { padding: 22px 8px 0; display: grid; align-content: start; }
.app-sellos .app-texto { padding-top: 22px; }
.estado {
  justify-self: start; display: inline-block; margin-bottom: 14px;
  background: var(--postit); color: var(--tinta); border: 2px solid var(--tinta);
  font-weight: 700; font-size: .9375rem; padding: 4px 10px; transform: rotate(-2deg);
}
.app h3 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; line-height: 1.02; font-variation-settings: "opsz" 40; margin-bottom: 14px; }
.app-dato { margin-bottom: 10px; }
.app-dato b { font-family: var(--f-mano); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--rojo); margin-right: 4px; }
.app-incluye { list-style: none; display: grid; gap: 8px; margin: 8px 0 22px; }
.app-incluye li { position: relative; padding-left: 26px; color: var(--tinta-suave); }
.app-incluye li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 3px solid var(--birome); border-bottom: 3px solid var(--birome); transform: rotate(-45deg);
}
.app .boton { justify-self: start; }

/* Precio: etiqueta colgante */
.precio {
  position: relative; max-width: 640px; margin: 56px auto 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center;
  background: #FFF6D2; border: 2px solid var(--tinta); padding: 18px 22px 18px 18px;
  box-shadow: var(--sombra); transform: rotate(1deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.precio-ojal { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--tinta); background: var(--papel); }
.precio b { display: block; font-family: var(--f-titulo); font-size: 1.35rem; line-height: 1.15; }
.precio p { color: var(--tinta-suave); }

/* ---------- Probala: tarjeta de sellos con tu rubro ---------- */
.probala .antetitulo { margin-bottom: 8px; }
.probala-grilla { display: grid; gap: 32px; }
@media (min-width: 960px) { .probala-grilla { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; } }
.probala-input {
  min-height: 52px; padding: 10px 14px; font: 400 1.0625rem/1.2 var(--f-texto); color: var(--tinta);
  background: var(--blanco); border: 2.5px solid var(--tinta); border-radius: 0; box-shadow: inset 3px 3px 0 rgba(31,26,23,.08);
}
.probala-input::placeholder { color: #6A5F57; opacity: 1; }
.probala-sumar { justify-self: start; margin-top: 8px; cursor: pointer; }
.probala-nota { margin-top: 8px; }
html:not(.js) .probala-sumar, html:not(.js) .probala-form .chips, html:not(.js) .probala-form label, html:not(.js) .probala-input, html:not(.js) #lbl-pr-rubro { display: none; }
.probala-mesa {
  position: relative; min-height: 380px; padding: 30px 16px 56px; overflow: hidden;
  display: grid; place-items: center;
  background-color: var(--kraft);
  background-image: linear-gradient(rgba(31,26,23,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(31,26,23,.09) 1px, transparent 1px);
  background-size: 28px 28px; border: 2px solid var(--tinta);
}
.probala-etiqueta { left: 10px; right: auto; max-width: calc(100% - 20px); }
.carton {
  position: absolute; left: 4%; top: 16px; width: 200px; padding: 12px 14px 10px;
  background: #E6CFA6; border: 2px solid var(--tinta); transform: rotate(-8deg);
  box-shadow: 4px 5px 0 rgba(31,26,23,.2); display: grid; gap: 8px; opacity: .95;
}
.carton-nombre { font: 600 1.35rem/1 var(--f-mano); color: var(--tinta); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.carton-grilla { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.carton-grilla i { aspect-ratio: 1; border: 1.5px dashed rgba(31,26,23,.5); border-radius: 50%; }
.carton-grilla i:nth-child(-n+3) { background: radial-gradient(circle, var(--rojo) 0 45%, transparent 47%); border-style: solid; }
.carton-pie { font: 600 1.05rem/1 var(--f-mano); color: var(--tinta-suave); }

.mini-pase {
  position: relative; z-index: 2; width: min(330px, 100%); margin-top: 70px;
  border-radius: 16px; color: #fff; overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--pase);
  box-shadow: 0 0 0 2.5px var(--tinta), 8px 11px 0 rgba(31,26,23,.28);
  transform: rotate(2deg); transition: background-color .25s ease;
}
.mp-tope { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.mp-marca { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #F3E6CF; display: grid; place-items: center; }
.mp-marca svg { width: 24px; height: 24px; }
.mp-nombre { flex: 1; min-width: 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.1; overflow-wrap: anywhere; }
.mp-campo { display: grid; text-align: right; }
.mp-campo small { font-size: .625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.mp-campo b { font-size: 1.125rem; font-weight: 600; }
.mp-tira {
  margin: 2px 12px 0; padding: 12px 10px; border-radius: 12px; background: rgba(0,0,0,.26);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; justify-items: center;
}
.mp-sello { width: 100%; max-width: 46px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.mp-sello svg { width: 60%; height: 60%; }
.mp-sello.lleno { background: #F3E6CF; }
.mp-sello.vacio { border: 2px dashed rgba(243,230,207,.5); }
.mp-sello.nuevo { background: #E9B949; animation: mp-pum .35s ease-out; }
.mini-pase.premio .mp-sello.lleno { background: #E9B949; }
@keyframes mp-pum { from { transform: scale(1.5) rotate(-12deg); } to { transform: none; } }
.mp-fila { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px 16px; }
.mp-fila .mp-campo { text-align: left; }
.mp-fila .mp-der { text-align: right; }
.mp-fila b { font-size: 1rem; }

/* ---------- Preguntas ---------- */
.faq { max-width: 860px; display: grid; gap: 14px; }
.faq details { background: var(--blanco); border: 2px solid var(--tinta); box-shadow: 3px 4px 0 rgba(31,26,23,.16); }
.faq details:nth-child(even) { transform: rotate(.4deg); }
.faq details:nth-child(odd) { transform: rotate(-.3deg); }
.faq summary {
  cursor: pointer; list-style: none; min-height: 52px; padding: 14px 52px 14px 18px; position: relative;
  font-family: var(--f-titulo); font-weight: 800; font-size: 1.25rem; line-height: 1.2; font-variation-settings: "opsz" 32;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mano); font-size: 2.2rem; line-height: 1; color: var(--rojo);
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] { background: #FFF6D2; }
.faq details p { padding: 0 18px 18px; color: var(--tinta-suave); max-width: 40em; }

/* Copiar mail y nota de ejemplos */
.copiar { display: none; }
.js .copiar { display: inline-flex; align-items: center; }
.pie-nota { flex-basis: 100%; font-size: .875rem; }

/* ---------- Cómo funciona (3 notas) ---------- */
@media (min-width: 760px) { .notas-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Cierre ---------- */
.ma-cierre { padding-top: 64px; padding-bottom: 88px; }
.ma-cierre .contacto-titular { max-width: 15em; }
.ma-cierre .botones { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  .mp-sello.nuevo { animation: none; }
}
.estado-lista { background: #BFE3C8; }
.precio b.precio-inline { display: inline; font-family: inherit; font-size: inherit; }

/* Video de la tarjeta de sellos: vertical, con el borde y la sombra de la marca. */
.ma-video { margin: 36px auto 0; max-width: 340px; }
.ma-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--tinta); border: 2px solid var(--tinta); box-shadow: 6px 6px 0 rgba(31,26,23,.22); }
.ma-video figcaption { margin-top: 12px; font-size: .92rem; text-align: center; color: var(--tinta); }

/* Home: el video va en la mesa del hero, al lado del título */
.ma-mesa.ma-mesa-video { height: auto; margin: 0; padding: 22px 18px 16px; display: grid; justify-items: center; gap: 12px; }
.ma-mesa-video video { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 9 / 16; background: var(--tinta); border: 2px solid var(--tinta); box-shadow: 6px 6px 0 rgba(31,26,23,.22); transform: rotate(-1.5deg); }
.ma-mesa-video figcaption { background: var(--tinta); color: var(--papel); font-size: .8125rem; font-weight: 700; padding: 4px 9px; letter-spacing: .03em; text-align: center; }
@media (min-width: 960px) { .ma-mesa.ma-mesa-video { height: auto; padding: 28px 24px 20px; } .ma-mesa-video video { max-width: 320px; } }

/* Home: el servicio secundario, en una hoja más chica */
.tambien { padding-top: 8px; }
.tambien-hoja { max-width: 760px; margin: 0 auto; padding: 26px 24px; background: var(--blanco); border: 2px solid var(--tinta); box-shadow: var(--sombra); }
.tambien-hoja h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 8px; }
.tambien-hoja p { color: var(--tinta-suave); max-width: 40em; }
.tambien-hoja .botones { margin-top: 16px; }
