/*
 * AldeOn — capa de modernización común a la web de marketing (2026-10-08).
 * Se carga la ÚLTIMA en cada página, así que solo afina lo anterior:
 *  - neutros más limpios y bloques de fondo distinguibles (arena / blanco / verde suave),
 *  - menos adorno (sin manchas de color, sin grano, sin halos que pulsan, sin etiquetas sobre los titulares),
 *  - detalles del navegador con la paleta (selección, foco, barra de desplazamiento),
 *  - movimiento sobrio: botones que responden al pulsar, una sola entrada en la portada y respeto a "reducir movimiento".
 */

:root {
  --cream: #FBF9F4;
  --sand: #F1EDE4;
  --ink: #25231E;
  --ink-soft: #5E5A50;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --line: rgba(37, 35, 30, 0.09);
}

/* ---------- Detalles del navegador ---------- */
::selection { background: rgba(var(--org-accent-rgb, 62, 107, 51), 0.22); color: var(--ink); }
html { accent-color: var(--org-accent, #3E6B33); scrollbar-color: rgba(37, 35, 30, 0.28) transparent; scrollbar-width: thin; }
body { caret-color: var(--org-accent, #3E6B33); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--org-accent, #3E6B33); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .org-chip:focus-visible, .price-pill:focus-visible { border-radius: 999px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1, h2 { letter-spacing: -0.015em; }
.price-amount, .counter, [data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Menos adorno ---------- */
.mesh-bg, .mesh-blob, .blob, .subhero-blob, .grain-overlay::after { display: none !important; }
.price-card--highlight::after { display: none; }
/* Etiquetas encima de los titulares: el titular ya habla solo. (Las de los planes, "Más popular", sí informan y se quedan.) */
.eyebrow, .pf-group-tag, .board-callout-tag, .admin-callout-tag, .showcase-text > .tag, .section-head > .tag, .how-head > .tag, .mission .tag { display: none !important; }
.price-card > .tag { align-self: flex-start; display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; text-transform: none; margin-bottom: 4px; }

/* ---------- Tarjetas: una sola elevación (filete), radios contenidos ---------- */
.quick-card, .bento-tile, .faq-item, .price-card:not(.price-card--highlight) {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: none;
}
.bento-tile { border-top: 1px solid var(--line); }
.bento-tile::after { display: none; }
.bento-tile--big { background: #fff; }
.bento-tile:hover { box-shadow: 0 18px 36px -18px rgba(37, 35, 30, 0.22); }

/* ---------- Bloques de fondo distinguibles ---------- */
.showcase--boxed, .map-section, .how { border: 1px solid var(--line); border-radius: 32px; }
.showcase--boxed { background: var(--sand); }
.map-section { background: #fff; }
.how { background: var(--org-accent-tint, #E6EDE3); border-color: rgba(var(--org-accent-rgb, 62, 107, 51), 0.14); }
.cta-band { border-radius: 32px; }

/* ---------- Aviso de promoción: sin emoji, en la gama de marca ---------- */
[data-promo-banner] { background: var(--org-accent-tint, #E6EDE3) !important; color: var(--org-accent-text, var(--org-accent, #3E6B33)) !important; border-radius: 12px !important; }

/* ---------- Píldoras de tipo de organización ---------- */
.price-pills { gap: 12px; }
.price-pill { display: inline-flex; gap: 10px; align-items: center; min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: #fff; border: 2px solid var(--c); color: var(--ink); font-weight: 800; font-size: 0.98rem;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out); }
.price-pill::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); transition: background-color .18s var(--ease-out), transform .18s var(--ease-out); }
.price-pill b { color: var(--tx); transition: transform .18s var(--ease-out), color .18s var(--ease-out); }
@media (hover: hover) {
  .price-pill:hover { background: var(--c); color: var(--hv); transform: translateY(-2px); }
  .price-pill:hover::before { background: var(--hv); }
  .price-pill:hover b { color: var(--hv); transform: translateX(3px); }
}
.price-pill:active { transform: scale(0.97); }
/* Arriba (orientar): discretas, como una línea de navegación */
.org-strip .price-pill { border-color: transparent; background: transparent; min-height: 40px; padding: 0 14px 0 8px; font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); }
@media (hover: hover) {
  .org-strip .price-pill:hover { background: transparent; color: var(--ink); transform: none; }
  .org-strip .price-pill:hover::before { background: var(--c); transform: scale(1.4); }
}
.org-strip .org-types-list { gap: 4px 10px; }

/* ---------- Botones: responden al pulsar ---------- */
.btn { transition: transform .16s var(--ease-out), background-color .16s var(--ease-out), box-shadow .16s var(--ease-out), border-color .16s var(--ease-out), color .16s var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } .btn:active { transform: scale(0.97); } }

/* ---------- Preguntas frecuentes: la respuesta entra con un pequeño fundido ---------- */
.faq-item[open] > p { animation: modern-fade-down .24s var(--ease-out); }
.faq-item summary::after { transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
@keyframes modern-fade-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Portada: una única entrada, escalonada y corta ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-grid > div:first-child > * { animation: modern-rise .6s var(--ease-out) backwards; }
  .hero-grid > div:first-child > *:nth-child(2) { animation-delay: .06s; }
  .hero-grid > div:first-child > *:nth-child(3) { animation-delay: .12s; }
  .hero-grid > div:first-child > *:nth-child(4) { animation-delay: .18s; }
  .hero-grid > div:first-child > *:nth-child(5) { animation-delay: .24s; }
}
@keyframes modern-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Pie de página ---------- */
.site-footer { margin-top: 40px; padding: 56px 0 36px; border-top: 1px solid var(--line); background: var(--cream); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h3 { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.footer-col > a { display: block; padding: 5px 0; color: var(--ink); font-weight: 600; font-size: 0.95rem; transition: color .15s var(--ease-out); }
@media (hover: hover) { .footer-col > a:hover { color: var(--org-accent-text, var(--org-accent, #3E6B33)); } }
.footer-about p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; max-width: 300px; margin: 14px 0 18px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.footer-logo .brand-mark { width: 34px; height: 34px; }
.site-footer .footer-social { display: flex; align-items: center; gap: 10px; }
.site-footer .footer-social-label { display: none; }
.footer-copy { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.85rem; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-logo .brand-mark { display: inline-flex; width: 34px; height: 34px; flex: none; border-radius: 9px; overflow: hidden; }
.footer-logo .brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-footer .footer-social { justify-content: flex-start; }
.footer-logo { line-height: 1; } .footer-logo .brand-mark { margin: 0; align-self: center; } .footer-logo > span:last-child { display: block; line-height: 34px; }
/* Tarjeta grande del bento: más presencia tipográfica y contenido abajo, para que no parezca vacía */
.bento-tile--big { justify-content: flex-end; min-height: 320px; }
.bento-shot { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 0 auto; filter: drop-shadow(0 14px 22px rgba(46, 42, 34, .12)); }
.bento-shot + .bento-icon { margin-top: 30px; }
.bento-tile--big h3 { font-size: 1.7rem; }
.bento-tile--big p { font-size: 1.08rem; }

/* Iconos de las tarjetas de funciones: sueltos, sin ficha de color encima del titular */
.bento-icon { width: auto; height: auto; background: transparent !important; border-radius: 0; margin-bottom: 12px; justify-content: flex-start; }
.bento-icon svg { width: 26px; height: 26px; }
.bento-tile--big .bento-icon { width: auto; height: auto; }
.bento-tile--big .bento-icon svg { width: 34px; height: 34px; }
@media (max-width: 600px) {
  .org-strip .org-types-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 380px; margin: 0 auto; }
  .org-strip .price-pill { white-space: nowrap; background: #fff; border: 1px solid var(--line); min-height: 40px; padding: 0 14px 0 12px; font-size: 0.9rem; gap: 8px; text-align: left; }
  .org-strip .price-pill::before { width: 9px; height: 9px; flex: none; }
}

/* ---------- Efectos de aparición y barra superior ---------- */
.m-hide { opacity: 0; transform: translateY(18px); }
.m-hide.m-in { opacity: 1; transform: none; transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.nav { transition: box-shadow .25s var(--ease-out), border-color .25s var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(37, 35, 30, 0.28); }
@media (hover: hover) {
  .quick-card, .price-card:not(.price-card--highlight), .faq-item { transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out); }
  .quick-card:hover, .price-card:not(.price-card--highlight):hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(37, 35, 30, 0.3); border-color: rgba(37, 35, 30, 0.14); }
  .faq-item:hover { border-color: rgba(37, 35, 30, 0.16); }
}

/* ---------- "Por qué existe": cabecera centrada y tres razones en columnas, cada una con su color ---------- */
.why { display: grid; grid-template-columns: 1fr; gap: 48px; }
.why-lead { text-align: center; }
.why-lead h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 18px; }
.why-statement { font-family: 'Nunito', sans-serif; font-weight: 500; font-size: 1.15rem; line-height: 1.65; color: var(--ink-soft); max-width: 720px; margin: 0 auto; }
.why-statement mark { background: none; color: var(--ink); font-weight: 800; }
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-row { --wc: var(--org-accent, #3E6B33); --wt: var(--org-accent-tint, #E6EDE3); position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 30px; overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out); }
.why-row:nth-child(2) { --wc: var(--events); --wt: var(--events-tint); }
.why-row:nth-child(3) { --wc: #8A6D1F; --wt: var(--highlight-tint); }
.why-row::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--wc); }
.why-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; background: var(--wt); color: var(--wc); margin-bottom: 18px; transition: transform .3s var(--ease-out); }
.why-icon svg { width: 24px; height: 24px; }
.why-row h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.35rem; margin: 0 0 10px; }
.why-row p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.why-row p strong { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 62%, var(--wt) 62%); }
@media (hover: hover) { .why-row:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -22px rgba(37, 35, 30, 0.3); } .why-row:hover .why-icon { transform: scale(1.1) rotate(-4deg); } }
@media (max-width: 860px) { .why-list { grid-template-columns: 1fr; } }
/* Móvil y tableta: cada tarjeta mide lo que necesita su texto (antes todas igualaban a la más alta) */
@media (max-width: 900px) {
  .bento-grid { grid-auto-rows: auto; }
  .bento-tile--big { min-height: 0; justify-content: flex-start; }
  .bento-tile--big h3 { font-size: 1.35rem; }
  .bento-tile { padding: 22px 22px 24px; }
}

/* ---------- "Empezar lleva cinco minutos": una línea que une los tres pasos ---------- */
.steps { position: relative; gap: 28px; margin-top: 8px; }
.steps::before { content: ''; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: rgba(var(--org-accent-rgb, 62, 107, 51), 0.28); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .steps::before { animation: modern-line 1.1s .2s var(--ease-out) backwards; } }
@keyframes modern-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step { position: relative; text-align: center; background: transparent; padding: 0 12px; }
.step-num { width: 56px; height: 56px; margin: 0 auto 18px; background: var(--org-accent, #3E6B33); color: #fff; font-size: 1.35rem; box-shadow: 0 0 0 8px var(--org-accent-tint, #E6EDE3); transition: transform .25s var(--ease-out); }
@media (hover: hover) { .step:hover .step-num { transform: scale(1.08); } }
.step h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.3rem; }
.step p { max-width: 300px; margin: 0 auto; }
@media (max-width: 760px) {
  .steps { gap: 36px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; transform-origin: top; }
  .step { text-align: left; padding: 0 0 0 76px; min-height: 56px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step p { margin: 0; max-width: none; }
  @keyframes modern-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
.how-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 44px; }
.how-cta span { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- "Lo esencial del día a día": filas horizontales, icono en círculo a la izquierda ---------- */
.story-cards-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 18px; max-width: 960px; margin-left: auto; margin-right: auto; }
.story-cards-grid .bento-tile { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; align-items: start; padding: 26px 28px; }
.story-cards-grid .bento-icon { grid-row: 1 / span 2; width: 60px; height: 60px; border-radius: 50%; margin: 0; justify-content: center; align-items: center; color: var(--tile-accent);
  background: color-mix(in srgb, var(--tile-accent) 13%, #fff) !important; transition: transform .3s var(--ease-out); }
.story-cards-grid .bento-icon svg { width: 28px; height: 28px; }
.story-cards-grid .bento-tile h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; margin: 2px 0 6px; }
.story-cards-grid .bento-tile p { font-size: 0.98rem; line-height: 1.6; }
@media (hover: hover) { .story-cards-grid .bento-tile:hover .bento-icon { transform: scale(1.08) rotate(-4deg); } }
@media (max-width: 700px) { .story-cards-grid { grid-template-columns: 1fr; } .story-cards-grid .bento-tile { grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; } .story-cards-grid .bento-icon { width: 48px; height: 48px; } }

/* ---------- Franja de datos de las páginas por tipo: cifras con presencia ---------- */
.stat-strip-grid { border-radius: 20px; }
.stat-number { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.9rem; margin-top: 8px; }
.stat-item { padding: 34px 20px; transition: background-color .25s var(--ease-out); }
@media (hover: hover) { .stat-item:hover { background: rgba(var(--org-accent-rgb, 62, 107, 51), 0.05); } }
.story-cards-grid .bento-tile { align-content: start; grid-template-rows: auto 1fr; }

/* ---------- "La vida de X, en el móvil": iconos en círculo y textos con el mismo tono que el resto ---------- */
.story-step .quick-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.story-step .quick-icon svg { width: 26px; height: 26px; }
.story-step h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; }

/* ---------- Banda en movimiento con lo que incluye AldeOn ---------- */
.marquee { margin-top: var(--section-gap); display: grid; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; width: max-content; }
.marquee-track { display: flex; flex: none; gap: 14px; padding: 0 7px; margin: 0; list-style: none; }
.marquee-track li { white-space: nowrap; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: clamp(1.02rem, 1.7vw, 1.3rem); padding: 12px 24px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.marquee-row:nth-child(1) li:nth-child(4n+1) { background: var(--org-accent-tint, #E6EDE3); }
.marquee-row:nth-child(1) li:nth-child(4n+3) { background: var(--sand); }
.marquee-row:nth-child(2) li:nth-child(4n+2) { background: var(--highlight-tint); }
.marquee-row:nth-child(2) li:nth-child(4n+4) { background: var(--home-tint); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-row.to-left { animation: marquee-left 55s linear infinite; }
  .marquee-row.to-right { animation: marquee-right 62s linear infinite; }
}
@keyframes marquee-left { to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee { -webkit-mask-image: none; mask-image: none; } .marquee-row { width: auto; flex-wrap: wrap; justify-content: center; } .marquee-track[aria-hidden="true"] { display: none; } .marquee-track { flex-wrap: wrap; justify-content: center; } }

/* ---------- Titular de la portada: las palabras suben una a una ---------- */
.hero h1, .subhero h1 { animation: none !important; }
.m-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.m-word > span { display: inline-block; animation: m-word-up .7s var(--ease-out) backwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes m-word-up { from { transform: translateY(105%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .m-word > span { animation: none; } }

/* ---------- Brillo que sigue al cursor en tarjetas (solo con ratón) ---------- */
@media (hover: hover) and (pointer: fine) {
  .bento-tile, .why-row, .price-card:not(.price-card--highlight) {
    background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), rgba(var(--org-accent-rgb, 62, 107, 51), 0.10), transparent 70%);
  }
  .btn-primary.m-mag { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 1px)); }
}

/* Subrayado de marcador que se dibuja al entrar la tarjeta */
.why-row p strong { background-repeat: no-repeat; background-size: 100% 100%; }
.why-row.m-hide p strong { background-size: 0% 100%; }
.why-row.m-hide.m-in p strong { background-size: 100% 100%; transition: background-size .9s .35s var(--ease-out); }
