/*
Theme Name: BRAVURA360
Theme URI: https://bravura360.com
Author: Zema IT
Description: Tema de la web comercial de BRAVURA360, software para ganaderías de bravo.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: Propietaria
Text Domain: bravura360
*/

/* Ajustes que theme.json no cubre */
html { scroll-behavior: smooth; }
:where(section[id]), .b360-ancla { scroll-margin-top: 90px; }

.b360-cabecera { position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--wp--preset--color--oro); }
.admin-bar .b360-cabecera { top: 32px; }
.b360-cabecera .wp-block-navigation a { text-decoration: none; }
.b360-cabecera .wp-block-navigation a:hover { color: var(--wp--preset--color--oro-claro); }

.b360-hero { background: radial-gradient(ellipse at 80% 20%, #5a1420 0%, #2a0e12 45%, #150b0c 100%); }
.b360-eyebrow { letter-spacing: .22em; text-transform: uppercase; }
.b360-captura img { border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(201,161,74,.35); }
.b360-captura-clara img { border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(60,20,20,.45), 0 0 0 1px rgba(122,16,39,.12); }

.b360-tarjeta { border: 1px solid rgba(122,16,39,.12); border-radius: 14px; height: 100%; transition: transform .2s, box-shadow .2s; }
.b360-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(60,20,20,.35); }
.b360-tarjeta h3 { margin-top: 0; }
.b360-icono { font-size: 1.6rem; line-height: 1; margin: 0 0 .6rem; }

.b360-plan { border: 1px solid rgba(122,16,39,.15); border-radius: 16px; height: 100%; display: flex; flex-direction: column; }
.b360-plan .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.b360-plan-destacado { border: 2px solid var(--wp--preset--color--oro); box-shadow: 0 24px 50px -24px rgba(122,16,39,.45); position: relative; }
.b360-plan ul { padding-left: 1.1rem; }
.b360-plan li { margin-bottom: .35rem; }
.b360-etiqueta { display: inline-block; border-radius: 999px; padding: .2rem .75rem; letter-spacing: .08em; text-transform: uppercase; }

.b360-paso-num { font-family: var(--wp--preset--font-family--playfair); font-size: 2.6rem; line-height: 1; margin: 0; }

.b360-faq details { border-bottom: 1px solid rgba(122,16,39,.15); padding: 1rem 0; }
.b360-faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; }
.b360-faq summary::-webkit-details-marker { display: none; }
.b360-faq summary::after { content: "+"; float: right; color: var(--wp--preset--color--burdeos); font-size: 1.4rem; line-height: 1; }
.b360-faq details[open] summary::after { content: "–"; }

.b360-pie a { text-decoration: none; }
.b360-pie a:hover { color: var(--wp--preset--color--oro-claro); }

@media (max-width: 781px) {
  .b360-ocultar-movil { display: none !important; }
  .b360-hero h1 { font-size: 2.3rem !important; }
}

/* Sin huecos entre cabecera, contenido y pie */
.wp-site-blocks > * + * { margin-block-start: 0; }
.b360-cabecera .wp-block-button__link { white-space: nowrap; }
.b360-razon hr.wp-block-separator { width: 60px; margin-left: 0; border: 0; height: 2px; }
@media (max-width: 600px) {
  .b360-cabecera .wp-block-image img { width: 150px !important; }
  .b360-cabecera .wp-block-button__link { padding: .45rem .9rem !important; font-size: .9rem; }
}

/* Formulario de demostración */
.b360-form { max-width: 720px; margin: 1.5rem auto 0; text-align: left; }
.b360-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.b360-campo { display: block; margin-bottom: 1rem; font-size: .9rem; color: var(--wp--preset--color--crema); }
.b360-campo input, .b360-campo textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .35rem; padding: .7rem .85rem; border-radius: 10px; border: 1px solid rgba(201,161,74,.45); background: var(--wp--preset--color--marfil); color: var(--wp--preset--color--tinta); font: inherit; font-size: 1rem; }
.b360-campo input:focus, .b360-campo textarea:focus { outline: 2px solid var(--wp--preset--color--oro); outline-offset: 1px; }
.b360-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.b360-check input { margin-top: .25rem; accent-color: var(--wp--preset--color--oro); }
.b360-check a, .b360-hero p a { color: var(--wp--preset--color--oro-claro); }
.b360-enviar { text-align: center; margin-top: 1.25rem; }
.b360-enviar button { background: var(--wp--preset--color--oro); color: var(--wp--preset--color--negro); border: 0; cursor: pointer; padding: .9rem 2rem; font-size: 1.05rem; }
.b360-enviar button:hover { background: var(--wp--preset--color--oro-claro); }
.b360-oculto { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.b360-aviso { max-width: 720px; margin: 1.5rem auto 0; padding: 1rem 1.25rem; border-radius: 12px; text-align: center; }
.b360-aviso-ok { background: rgba(201,161,74,.18); border: 1px solid var(--wp--preset--color--oro); }
.b360-aviso-error { background: rgba(138,28,43,.35); border: 1px solid #c4475a; margin-bottom: 0; }
@media (max-width: 600px) { .b360-fila { grid-template-columns: 1fr; gap: 0; } }
