/* El correo del lunes (home). Prototipo aprobado 9 nov. 2026. */
:root { --cm-ambar: #F4A93B; }
.cm { padding: clamp(56px, 8vw, 110px) 0; }
.cm-ancho { width: min(1160px, 100% - 32px); margin-inline: auto; }
.cm-zona { view-timeline-name: --cm; view-timeline-axis: block; position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 60px); border-radius: clamp(28px, 3.6vw, 48px); overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 90% at 92% 12%, rgba(244, 169, 59, .16), transparent 70%), radial-gradient(50% 80% at 0% 100%, rgba(111, 179, 150, .12), transparent 70%), linear-gradient(160deg, #16314B, #0D1E2F); box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .12), 0 50px 90px -50px rgba(0, 0, 0, .9); }
.cm-zona::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; mix-blend-mode: overlay; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.cm-ceja { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ambar); }
.cm-ceja::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.cm h2 { margin: 0; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.035em; font-weight: 900; }
.cm h2 em { display: block; color: var(--ambar); }
.cm-sub { margin: 18px 0 0; max-width: 32em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: #C4D0D8; }
.cm-sub b { color: var(--tinta); }
.cm-pasos { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.cm-pasos li { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 10px; border-radius: 999px; font-size: 15px; font-weight: 700; background: rgba(238, 243, 242, .06); box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .14); }
.cm-pasos svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; color: var(--noche); background: var(--tono); }
.cm-pasos li:nth-child(1) { --tono: var(--ambar); } .cm-pasos li:nth-child(2) { --tono: var(--leer); } .cm-pasos li:nth-child(3) { --tono: var(--hacer); }

/* Formulario de un solo campo */
.cm-form { display: grid; gap: 14px; margin-top: 28px; max-width: 520px; }
.cm-campo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.cm-campo input[type="email"] { min-height: 60px; padding: 0 20px; border: 0; border-radius: 999px; font: 600 17px/1 inherit; color: #13293D; background: #EEF3F2; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .25s; }
.cm-campo input[type="email"]::placeholder { color: #6a7d8b; }
.cm-campo input[type="email"]:focus { outline: none; box-shadow: inset 0 0 0 3px var(--ambar); }
.cm-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.5; color: #C4D0D8; cursor: pointer; }
.cm-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ambar); }
.cm-tranq { margin: 0; font-size: 14px; line-height: 1.5; color: var(--niebla); }
.cm-tranq a { color: var(--ambar); text-underline-offset: 4px; }
.cm-tranq a:is(:hover, :focus) { color: #FFD89B; }
.cm-exito { display: none; margin-top: 28px; max-width: 520px; padding: 20px 22px; border-radius: 22px; background: rgba(111, 179, 150, .12); box-shadow: inset 0 0 0 1px rgba(111, 179, 150, .4); }
.cm-exito b { display: block; font-size: 20px; margin-bottom: 6px; } .cm-exito p { margin: 0 0 14px; color: #C4D0D8; line-height: 1.5; }
.cm-caja.ok .cm-form { display: none; } .cm-caja.ok .cm-exito { display: block; }

/* Edición de muestra: un correo que se arma con el scroll */
.cm-muestra { position: relative; justify-self: center; width: min(100%, 440px); }
.cm-sobre { overflow: hidden; border-radius: 24px; color: #13293D; background: #EEF3F2; box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1); transform: rotate(1.6deg); }
.cm-barra { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #dfe8e6; font-size: 12.5px; color: #4A5D6E; }
.cm-barra i { width: 9px; height: 9px; border-radius: 50%; background: #b9c7c8; font-style: normal; }
.cm-barra span { margin-left: auto; font-weight: 700; }
.cm-cab { padding: 18px 22px 6px; }
.cm-de { margin: 0; font-size: 12.5px; font-weight: 700; color: #4A5D6E; }
.cm-asunto { margin: 4px 0 0; font-size: 21px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.cm-bloque { margin: 0; padding: 14px 22px; border-top: 1px solid rgba(19, 41, 61, .1); }
.cm-bloque small { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.cm-bloque small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cm-bloque p { margin: 0; font-size: 15px; line-height: 1.5; }
.cm-bloque:nth-child(3) { --c: #D9861A; } .cm-bloque:nth-child(4) { --c: #2d6f9c; } .cm-bloque:nth-child(5) { --c: #2F6B57; }
.cm-boton { display: inline-flex; margin-top: 10px; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: #fff; background: #13293D; }
.cm-ejemplo { position: absolute; z-index: 3; top: -12px; right: 10px; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0A1622; background: var(--ambar); box-shadow: 0 10px 24px -10px rgba(244, 169, 59, .7); }

/* Pruebas: las tres carátulas */
.cm-prueba { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(22px, 3vw, 36px); }
.cm-prueba p { margin: 0; max-width: 24em; font-size: 15.5px; line-height: 1.45; color: var(--niebla); }
.cm-prueba p b { color: var(--tinta); }
.cm-libros { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.cm-libros li { width: 62px; aspect-ratio: 2 / 3; perspective: 500px; }
.cm-libros i { display: block; width: 100%; height: 100%; transform: rotateY(-22deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cm-libros li:hover i { transform: rotateY(-6deg) translateY(-4px); }
.cm-libros img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 14px 22px -10px rgba(0, 0, 0, .8); }

/* Entrada escalonada con el scroll */
@supports (animation-timeline: view()) {
 @media (prefers-reduced-motion: no-preference) {
  .cm-sobre { animation: cm-entra linear both; animation-timeline: --cm; animation-range: cover 4% cover 20%; }
  @keyframes cm-entra { from { opacity: 0; transform: translateY(34px) rotate(4deg) scale(.96); } to { opacity: 1; transform: rotate(1.6deg); } }
  .cm-cab, .cm-bloque { animation: cm-b linear both; animation-timeline: --cm; }
  .cm-cab { animation-range: cover 12% cover 22%; }
  .cm-bloque:nth-child(3) { animation-range: cover 17% cover 27%; } .cm-bloque:nth-child(4) { animation-range: cover 22% cover 32%; } .cm-bloque:nth-child(5) { animation-range: cover 27% cover 37%; }
  @keyframes cm-b { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
 }
}
@media (max-width: 960px) {
  .cm-zona { grid-template-columns: 1fr; padding: 24px 18px 28px; gap: 28px; }
  .cm-muestra { order: -1; width: min(100%, 380px); }
  .cm-campo { grid-template-columns: 1fr; } .cm-campo .lv-btn { width: 100%; justify-content: flex-start; }
  .cm-libros li { width: 54px; }
}

.cm-caja .lv-trampa { position: absolute; left: -9999px; }
.cm-aviso { margin: 0 0 12px; padding: 12px 16px; border-radius: 16px; font-size: 15px; background: rgba(238,243,242,.08); }
.cm-aviso.error { background: rgba(255,120,100,.14); box-shadow: inset 0 0 0 1px rgba(255,150,130,.5); }


/* Celular: la muestra va arriba, así que se arma antes. */
@supports (animation-timeline: view()) {
 @media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .cm-sobre { animation-range: cover 1% cover 9%; }
  .cm-cab { animation-range: cover 5% cover 11%; }
  .cm-bloque:nth-child(3) { animation-range: cover 8% cover 14%; }
  .cm-bloque:nth-child(4) { animation-range: cover 11% cover 17%; }
  .cm-bloque:nth-child(5) { animation-range: cover 14% cover 20%; }
 }
}