/* components.css — botones, tarjetas de artículo, texto del artículo, caja de compra, reseñas, flotantes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: 16px; line-height: 1.2; border: 1.5px solid transparent; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #10213F; }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-2); }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-line-l { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-line-l:hover, .btn-line-l:focus-visible { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-wa { background: #1A7F45; color: #fff; }
.btn-wa:hover, .btn-wa:focus-visible { background: #166b3a; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.foot a:focus-visible, .hero a:focus-visible { outline-color: var(--gold-2); }

/* Tarjeta de artículo */
.card { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.cards .card:nth-child(-n+2) { border-top: 2px solid var(--ink); }
.cards-3 .card:nth-child(-n+3) { border-top: 2px solid var(--ink); }
.card-tag { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.card-sum { margin-top: 12px; color: var(--muted); }
.card-more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gold); padding-block: 8px 2px; }
.card-more:hover { border-bottom-color: var(--navy); }
.feat .card-tag { margin-bottom: 0; }

/* Utilidades */
.u { text-decoration: underline; text-underline-offset: 3px; }
.about-cta { margin-top: 22px; }
.sec-more { padding-top: 0; }
.about h3 { font-size: clamp(22px, 2vw, 28px); }

/* Datos */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.facts dt { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 3.2vw, 48px); line-height: 1; color: var(--navy); }
.facts dd { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Texto del artículo */
.prose { font-size: 18px; line-height: 1.72; color: #1D2A47; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.4vw, 34px); margin-top: 1.9em; }
.prose h3 { font-size: clamp(20px, 1.6vw, 23px); margin-top: 1.6em; line-height: 1.25; }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--navy); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: .6em; }
.prose li::marker { color: var(--navy); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose .qa h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; margin-top: 1.4em; }

/* Caja de compra */
.buy { background: var(--navy); color: #fff; border-radius: 6px; padding: 26px; position: sticky; top: calc(var(--top-h) + 20px); }
.buy h2 { font-size: 26px; color: #fff; }
.buy p { margin-top: 12px; color: #D6DEEF; font-size: 15.5px; }
.buy .btn { margin-top: 14px; }
.buy .buy-first { margin-top: 20px; }
.buy-dat { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; color: #C3CEE6; }
.buy-dat p { margin-top: 6px; font-size: 14px; color: #C3CEE6; }
.play { margin-top: 18px; font-size: 13px; color: #AFBCD9; }
.play a { text-decoration: underline; }

/* Reseñas reales de Google */
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.rev { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.rev-stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.rev blockquote { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); flex: 1; }
.rev figcaption { font-weight: 700; font-size: 15px; color: var(--muted); }
.revs-more { margin-top: 24px; }
.revs-more a { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gold); padding-block: 8px 2px; }

/* WhatsApp flotante (ordenador) y barra (móvil) */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.wa-float svg { width: 32px; height: 32px; }
.mbar { display: none; }
@media (max-width: 899px) {
  .wa-float { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 64px; background: #fff; border-top: 1px solid var(--line); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--navy); }
  .mbar a svg { width: 22px; height: 22px; }
  .mbar .mbar-wa { background: #1A7F45; color: #fff; }
}

/* Cookies (solo si se activa el píxel en build.py): en móvil tapa la barra mientras está abierto */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: 0 10px 30px rgba(10,20,50,.18); font-size: 14px; display: none; }
.cookie.is-visible { display: block; }
.cookie a { color: var(--blue); text-decoration: underline; }
.cookie-act { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 899px) { .cookie { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 10px 10px 0 0; } }

@media (max-width: 899px) {
  .facts, .revs { grid-template-columns: 1fr; }
  .facts { gap: 18px; }
  .buy { position: static; }
  .prose { font-size: 17.5px; }
}
@media (max-width: 599px) {
  .hero-cta .btn { width: 100%; }
}

/* Crédito RelyViews v3 (kit _kit-relyviews/credito-relyviews/rv-credit-v3.css) */
/* Crédito RelyViews v3 (regla de Alain, 11/11/2026 noche): compacto, con los colores de cada web y en la línea del copyright, sin banda propia.
   Marcado: <span class="rv-credit"><a href="https://relyviews.com" target="_blank" rel="noopener">Diseño web: <strong>RelyViews</strong></a></span> dentro de la fila del copyright.
   Toma el color del texto del pie (currentColor): el borde y el símbolo se adaptan a pies claros y oscuros. El símbolo se vuelve azul de marca al pasar el ratón.
   Zona de pulsación de 44 px aunque la píldora visible mida ~30 px. */
.rv-credit{display:inline-flex;margin:0;padding:0;border:0;background:none}
.rv-credit a[href*="relyviews.com"]{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:0;min-height:44px;padding:0 13px 0 10px;font-size:14px;font-weight:400;line-height:1;letter-spacing:0;color:inherit;opacity:1;text-decoration:none;white-space:nowrap;background:none;border:0;box-shadow:none;transform:none}
.rv-credit a[href*="relyviews.com"]::before{content:"";position:absolute;inset:7px 0;z-index:-1;width:auto;height:auto;border:1px solid color-mix(in srgb,currentColor 30%,transparent);border-radius:999px;background:none;transform:none;transition:border-color .2s,background-color .2s}
.rv-credit a[href*="relyviews.com"]::after{content:"";order:-1;flex:none;width:15px;height:15px;margin:0 7px 0 0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cmask id='m'%3E%3Crect width='32' height='32' fill='%23fff'/%3E%3Cpath d='M9.5 13.8l4.3 4.3 8.7-8.7' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Cpath mask='url(%23m)' d='M8 2h16a6 6 0 0 1 6 6v11a6 6 0 0 1-6 6H13l-6 5v-5.3A6 6 0 0 1 2 19V8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cmask id='m'%3E%3Crect width='32' height='32' fill='%23fff'/%3E%3Cpath d='M9.5 13.8l4.3 4.3 8.7-8.7' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Cpath mask='url(%23m)' d='M8 2h16a6 6 0 0 1 6 6v11a6 6 0 0 1-6 6H13l-6 5v-5.3A6 6 0 0 1 2 19V8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") center/contain no-repeat;transform:none;transition:background-color .2s}
.rv-credit a[href*="relyviews.com"] strong{margin-left:.3em;font-weight:600;color:inherit;text-decoration:none;letter-spacing:0}
.rv-credit a[href*="relyviews.com"]:hover,.rv-credit a[href*="relyviews.com"]:focus-visible{text-decoration:none;background:none;box-shadow:none;transform:none}
.rv-credit a[href*="relyviews.com"]:hover::before,.rv-credit a[href*="relyviews.com"]:focus-visible::before{border-color:currentColor;background:color-mix(in srgb,currentColor 8%,transparent)}
.rv-credit a[href*="relyviews.com"]:hover::after,.rv-credit a[href*="relyviews.com"]:focus-visible::after{background:#2589E6;transform:none}
.rv-credit a[href*="relyviews.com"]:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:999px}
/* Preguntas frecuentes (kit RelyViews). Hereda color y tipografía de la sección: sirve con cualquier paleta. */
.rv-faq-sec{padding-block:clamp(48px,7vw,96px)}
.rv-faq{max-width:60rem;margin-inline:auto}
.rv-faq h2{margin:0 0 1.25rem}
.rv-faq__item{border-top:1px solid rgba(127,127,127,.35)}
.rv-faq__item:last-of-type{border-bottom:1px solid rgba(127,127,127,.35)}
.rv-faq__item summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:44px;padding:.95rem 0;font-weight:600;font-size:1.05rem;line-height:1.35}
.rv-faq__item summary::-webkit-details-marker{display:none}
.rv-faq__item summary::after{content:"";flex:none;width:.55rem;height:.55rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s ease}
.rv-faq__item[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.rv-faq__item summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.rv-faq__item p{margin:0 0 1.1rem;max-width:68ch;line-height:1.6}
@media (prefers-reduced-motion:reduce){.rv-faq__item summary::after{transition:none}}
