/* Cowenta base — SOLO integración WordPress. El diseño vive en cowenta-reference.css. */

/* Contraste AA: muted y dorado oscurecidos lo justo (verificado 5.44 y 4.03) */
body { --muted: #5d6c73; }
body .sec-head-seo h2 em, body .intro-text h2 em, body .contact-info h2 em { color: #9a7b0f; }
body .price-card .was, body .price-card .was s { color: #5d6c73; opacity: 1; }

/* Sin subrayados en enlaces */
a { text-decoration: none; }
a:hover { text-decoration: none; }

/* Enlaces con clases de la referencia */
a.btn-hero, a.btn-hero-ghost, a.cta, a.link, a.btn-google { text-decoration: none; }
a.btn-hero, a.btn-hero-ghost { display: inline-block; }

/* Admin bar + header fijo de la referencia */
body.admin-bar .header { top: 32px; }
body.admin-bar.has-dev-banner .header { top: 92px; }
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
  body.admin-bar.has-dev-banner .header { top: 106px; }
}

/* Banner desarrollo: en flujo (se va al hacer scroll); el JS gestiona has-dev-banner */
.cow-devbanner:not(.slim) { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.cow-devbanner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: linear-gradient(90deg, #f2c12f, #ffe08a); color: #072b32; font-size: 14px; font-weight: 600; }
.cow-devbanner-dot { width: 10px; height: 10px; border-radius: 50%; background: #072b32; animation: cowblink 1.4s infinite; }
@keyframes cowblink { 50% { opacity: .25; } }
.cow-devbanner-text { flex: 1; }
.cow-devbanner-btn { background: #072b32; color: #fff; border-radius: 100px; padding: 8px 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cow-devbanner-close { background: none; border: 0; font-size: 20px; cursor: pointer; line-height: 1; }
/* Versión slim para el footer: compacta, sin cierre */
.cow-devbanner.slim { padding: 6px 12px; font-size: 12.5px; justify-content: center; text-align: center; position: static; }
.cow-devbanner.slim .cow-devbanner-btn { padding: 5px 12px; font-size: 12px; }

/* Marca con logo del Personalizador (solo logo, sin texto) */
.brand { min-width: 0; flex-shrink: 0; display: flex; align-items: center; }
.brand img.mark-img { height: 52px; width: auto; max-width: 260px; min-width: 0; display: block; object-fit: contain; }
@media (max-width: 640px) {
  .brand img.mark-img { height: 36px; max-width: 190px; }
}

/* En móvil el bottomnav cubre la navegación: sin hamburguesa */
@media (max-width: 960px) {
  .header button.burger { display: none; }
}
/* Botón central WhatsApp en bottomnav móvil */
a.bn-item.center .bn-ico { background: #25D366; color: #fff; }
a.bn-item.center:active .bn-ico { background: #1eb856; color: #fff; }
a.chat-fab { background: #25D366; }
a.chat-fab:hover { background: #1eb856; color: #fff; }
@media (max-width: 960px) {
  a.chat-fab { display: none; }
}

/* Footer (la referencia no trae; mismo lenguaje visual) */
.cow-footer { background: var(--brand); color: #fff; padding: 64px 32px 32px; margin-top: 0; }
.cow-footer-inner { max-width: 1240px; margin: 0 auto; }
.cow-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.cow-footer h3 { color: #fff; font-size: 19px; margin-bottom: 12px; }
.cow-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.cow-footer p, .cow-footer li { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.cow-footer ul { list-style: none; }
.cow-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.cow-footer a:hover { color: var(--accent); }
.cow-footer-sep { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 40px 0 20px; }
.cow-footer-legal { text-align: center; color: rgba(255,255,255,.5); font-size: 13px; }
.cow-install-link { background: none; border: none; color: var(--accent, #f2c12f); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; margin-left: 8px; }
.cow-install-hint { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1000; background: var(--brand, #072b32); color: #fff; border-radius: 14px; padding: 14px 16px; font-size: 13.5px; box-shadow: 0 12px 32px rgba(0,0,0,.3); display: flex; gap: 10px; align-items: center; }
.cow-install-hint button { flex-shrink: 0; background: var(--accent, #f2c12f); color: var(--brand, #072b32); border: none; border-radius: 100px; padding: 8px 16px; font-weight: 800; cursor: pointer; }
/* Botón flotante persistente del plugin de cookies: oculto para no tapar contenido */
.faz-btn-revisit-wrapper, .faz-btn-revisit { display: none !important; }
@media (max-width: 960px) { .cow-footer-grid { grid-template-columns: 1fr; } }

/* Anchos de bloques core dentro de plantillas */
.site-main .wp-block-group:where(:not(.hero-app):not(.cow-devbanner)) { max-width: 1240px; margin-inline: auto; }

/* Formulario de contacto */
.contact-form-wrap .cta{background:var(--brand);color:#fff;border:none;padding:13px;border-radius:100px;font-weight:700;font-size:14px;transition:background .2s;cursor:pointer;}
.contact-form-wrap .cta:hover{background:var(--accent);color:var(--brand);}

/* Auth modal */
.cow-auth-box { max-width: 420px; margin: 0 auto; }
.cow-auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 100px; padding: 12px; font-weight: 700; font-size: 14px; color: var(--brand); cursor: pointer; }
.cow-auth-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 5px; border-radius: 100px; margin: 20px 0; }
.cow-auth-tabs button { flex: 1; border: none; background: none; padding: 10px; border-radius: 100px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; font-family: inherit; }
.cow-auth-tabs button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.cow-auth-error { background: rgba(239,68,68,.1); color: #b91c1c; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; }
.cow-field { margin-bottom: 14px; }
.cow-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--brand); }
.cow-field input { width: 100%; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-family: inherit; background: var(--surface); }
.cow-field input:focus { outline: none; border-color: var(--brand); }
.cow-input-wrap { position: relative; }
.cow-input-wrap input { padding-right: 64px; }
.cow-toggle-pass { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.cow-check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 16px; }
.cow-auth-submit { width: 100%; background: var(--brand); color: #fff; border: none; border-radius: 100px; padding: 14px; font-weight: 800; font-size: 15px; cursor: pointer; }
.cow-auth-submit:disabled { opacity: .5; cursor: wait; }
.cow-pwd-meter { display: flex; gap: 6px; margin: 8px 0 16px; }
.cow-pwd-meter .bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line-2); }
.cow-pwd-meter .bar.on1 { background: #EF4444; }
.cow-pwd-meter .bar.on2 { background: #F59E0B; }
.cow-pwd-meter .bar.on3, .cow-pwd-meter .bar.on4 { background: #10B981; }
/* Facturación */
.cow-billing { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.cow-billing-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--brand); }
.cow-billing-sub { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.cow-account-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cow-account-type .type-opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 12px; cursor: pointer; font-family: inherit; text-align: left; }
.cow-account-type .type-opt.on { border-color: var(--brand); background: var(--surface); box-shadow: var(--shadow-sm); }
.cow-account-type .to-ico { font-size: 22px; }
.cow-account-type .to-main { display: block; font-weight: 800; font-size: 14px; color: var(--brand); }
.cow-account-type .to-sub { display: block; font-size: 12px; color: var(--muted); }
.cow-fiscal-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 4px 0 12px; }
.cow-fiscal-toggle .ft-main { display: block; font-weight: 700; font-size: 14px; color: var(--brand); }
.cow-fiscal-toggle .ft-sub { display: block; font-size: 12.5px; color: var(--muted); }
.cow-fiscal-toggle .switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.cow-fiscal-toggle .switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cow-fiscal-toggle .slider { position: absolute; inset: 0; background: var(--line-2); border-radius: 100px; transition: .25s; pointer-events: none; }
.cow-fiscal-toggle .slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cow-fiscal-toggle input:checked + .slider { background: var(--brand); }
.cow-fiscal-toggle input:checked + .slider::before { transform: translateX(20px); }
.cow-fiscal-fields { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; }
.cow-fiscal-fields.open { grid-template-rows: 1fr; }
.cow-fiscal-inner { overflow: hidden; }
.badge-opt { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 100px; padding: 2px 8px; margin-left: 6px; }
.badge-opt.req { color: #b91c1c; background: rgba(239,68,68,.1); }
.cow-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Verificación OTP */
.cow-verify-info { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.cow-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.cow-otp .otp-input { width: 100%; aspect-ratio: 1; text-align: center; font-size: 20px; font-weight: 800; border: 1.5px solid var(--line-2); border-radius: 12px; font-family: inherit; }
.cow-otp .otp-input:focus { outline: none; border-color: var(--brand); }
.cow-resend { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.cow-resend button { background: none; border: none; color: var(--brand); font-weight: 700; cursor: pointer; font-size: 13.5px; }
.cow-link-btn { background: none; border: none; color: var(--muted); font-size: 13.5px; cursor: pointer; }

/* Logout en mi cuenta */
.cow-logout { display: inline-block; border: 1.5px solid var(--line-2); color: var(--brand); border-radius: 100px; padding: 11px 22px; font-weight: 700; font-size: 14px; text-decoration: none; }

/* Definición de tarjetas sobre fondos claros */
.service-card, .price-card, .space-tile, .testimonial-seo, .perk, .faq-item {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

/* Enlaces de tarjeta: una línea */
.service-card .link { white-space: nowrap; }

/* Imágenes de servicio sin destacada */
.service-img:empty { min-height: 180px; background: var(--surface-2); }

/* Compensa el header fijo (como .app de la referencia) */
.site-main { padding-top: var(--header-h, 68px); }

/* Red de seguridad anti scroll-horizontal */
html, body { overflow-x: clip; }
.hero-inner > *, .intro-grid > *, .contact-seo > *, .access-strip > *, .sec-head-seo > * { min-width: 0; }
.faq-q, .faq-a-inner, .cow-lead, .lead, p, li, h1, h2, h3, .t, .d, .v { overflow-wrap: anywhere; }
.cow-devbanner { flex-wrap: wrap; }
@media (max-width: 640px) {
  .cow-devbanner-btn { padding: 6px 12px; font-size: 12px; }
  .access-strip { padding-left: 24px; padding-right: 24px; }
}
/* Pestañas pase diario / membresía */
.plan-tabs { margin-top: 8px; }
.pt-bar { display: inline-flex; gap: 6px; padding: 5px; background: var(--surface-2, #F7F9FA); border-radius: 100px; margin-bottom: 22px; }
.pt-tab { border: none; background: transparent; padding: 10px 22px; border-radius: 100px; font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 800; color: var(--muted, #6B7A80); cursor: pointer; }
.pt-tab.on { background: var(--brand, #072b32); color: #fff; box-shadow: 0 4px 14px rgba(7,43,50,.25); }
.cow-paybtn { display: inline-block; margin-top: 6px; padding: 7px 14px; border-radius: 100px; background: var(--accent, #f2c12f); color: var(--brand, #072b32); font-weight: 800; font-size: 12.5px; border: none; cursor: pointer; }
/* Ficha de espacio */
.espacio-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.espacio-photo { min-height: 340px; border-radius: 16px; background-size: cover; background-position: center; border: 1px solid var(--line, rgba(7,43,50,.08)); }
.espacio-info h2 { font-size: 20px; margin-bottom: 12px; }
.espacio-feats { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.espacio-feats li { padding-left: 26px; position: relative; font-size: 14.5px; }
.espacio-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--green, #10B981); font-weight: 800; }
.espacio-feats li.promo { color: var(--accent-d, #d9a825); font-weight: 700; }
.espacio-price { background: var(--surface-2, #F7F9FA); border: 1px solid var(--line, rgba(7,43,50,.08)); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.espacio-price .was { font-size: 13px; color: var(--muted, #6B7A80); text-decoration: line-through; }
.espacio-price .now { font-family: 'Manrope', sans-serif; font-size: 30px; font-weight: 800; color: var(--brand, #072b32); }
.espacio-price .now small { font-size: 14px; font-weight: 600; color: var(--muted, #6B7A80); }
.espacio-price .btn-hero { margin-top: 10px; text-align: center; }
.espacio-member { margin-top: 14px; background: linear-gradient(135deg, rgba(242,193,47,.12), rgba(242,193,47,.04)); border: 1px dashed rgba(242,193,47,.5); border-radius: 14px; padding: 16px 18px; }
.espacio-member .t { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800; color: var(--brand, #072b32); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.espacio-member .row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; color: var(--ink-2, #3B4A50); }
.espacio-member .row strong { color: var(--brand, #072b32); }
.espacio-member .inc { font-size: 13px; font-weight: 600; color: var(--accent-d, #d9a825); margin-top: 6px; }
.espacio-member .note { font-size: 12px; color: var(--muted, #6B7A80); margin-top: 8px; }
@media (max-width: 860px) { .espacio-detail { grid-template-columns: 1fr; } .espacio-photo { min-height: 220px; } }
/* Cuerpo de texto de la ficha */
.espacio-body { max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.espacio-body p { font-size: 16px; line-height: 1.7; color: var(--ink-2, #3B4A50); margin-bottom: 14px; }
.espacio-body h2, .espacio-body h3 { font-family: 'Manrope', sans-serif; color: var(--brand, #072b32); letter-spacing: -.02em; margin: 26px 0 12px; }
.espacio-body h2 { font-size: 22px; }
.espacio-body h3 { font-size: 18px; }
.espacio-body ul, .espacio-body ol { margin: 0 0 16px 4px; padding-left: 20px; color: var(--ink-2, #3B4A50); font-size: 15.5px; line-height: 1.7; }
.espacio-body li { margin-bottom: 6px; }
.espacio-body li::marker { color: var(--accent-d, #d9a825); font-weight: 800; }
.espacio-body strong { color: var(--brand, #072b32); }
.espacio-body a { color: var(--brand, #072b32); font-weight: 600; }
