/* css/custom.css — estilos propios de Yáakam (bento blocks). No editar vendor/ ni css/theme*.css.
   Paleta: turquesa #3DD9D9 · mostaza #D99A4E · café #8C441B · oscuro #26201E · claro #F2F2F2
   Fuentes: Young Serif (títulos) · Instrument Sans (texto) */
:root {
	--turq: #3DD9D9;  --mostaza: #D99A4E;  --cafe: #8C441B;  --oscuro: #26201E;  --claro: #F2F2F2;
	--turq-suave: #E4FAFA;  --mostaza-suave: #FBF0E2;
	--radio: 28px;
	--f-titulo: 'Young Serif', Georgia, 'Times New Roman', serif;
	--f-texto: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--primary: var(--cafe);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body, body p, body li, body a, body input, body textarea, body select, body button, body .btn, body .breadcrumb { font-family: var(--f-texto); }
body { color: var(--oscuro); background: #fff; }
h1, h2, h3, h4, h5, h6, .bt-h { font-family: var(--f-titulo) !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: -.01em; color: var(--oscuro); }
a { color: var(--cafe); }
a:hover, a:focus { color: var(--oscuro); }
.sr-solo { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.btn { border-radius: 50rem; font-weight: 600; }
.btn-primary, .btn-primary:focus { background-color: var(--oscuro); border-color: var(--oscuro); color: #fff; }
.btn-primary:hover, .btn-primary:active { background-color: var(--cafe); border-color: var(--cafe); color: #fff; }
.btn-outline-primary { color: var(--oscuro); border-color: var(--oscuro); }
.btn-outline-primary:hover { background-color: var(--oscuro); border-color: var(--oscuro); color: #fff; }
.btn-link { color: var(--cafe); }
.bg-color-grey { background-color: var(--claro) !important; }

/* Encabezado y pie */
#header .header-nav-main nav > ul > li > a { font-family: var(--f-texto); font-weight: 600; color: var(--oscuro); }
#header .header-nav-main nav > ul > li > a:hover, #header .header-nav-main nav > ul > li > a.active { color: var(--cafe); }
#footer { background: var(--oscuro); }
.page-header-modern.bg-color-grey { background: var(--claro) !important; }
.page-header h1, .page-header-modern h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--oscuro) !important; }
.page-header .breadcrumb li, .page-header .breadcrumb a { color: var(--oscuro); }
.page-header .breadcrumb li a { color: var(--cafe); }
.bento-head p { color: #5a504b; }
.bento-head p.bt-etiqueta { color: var(--oscuro); }

/* Pleca superior de contacto */
.vet-pleca { background: var(--oscuro); color: #fff; font-size: .85rem; padding: .45rem 0; }
.vet-pleca a { color: #fff; text-decoration: none; }
.vet-pleca a:hover { color: var(--turq); }
.vet-pleca i { color: var(--turq); }

/* ---------- Bento ---------- */
.bento-sec, .bento-sec *, .bento-sec *::before, .bento-sec *::after { box-sizing: border-box; }
.bento-sec { padding: 28px 0; }
.bento-primero { padding-top: 24px; }
.bento-compacto { padding-top: 0; }
.bento-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.bento-head { max-width: 760px; margin: 0 0 22px; }
.bento-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; margin: .5rem 0; }
.bento-head p { margin: 0; font-size: 1.05rem; }
.bento-pie { margin: 22px 0 0; text-align: center; }
.bento-faq { max-width: 860px; }
.bento-faq h2 { margin-bottom: 1rem; }
.bento-faq h3 { font-size: 1.25rem; margin: 1.5rem 0 .25rem; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento > .s3 { grid-column: span 3; }  .bento > .s4 { grid-column: span 4; }  .bento > .s5 { grid-column: span 5; }
.bento > .s6 { grid-column: span 6; }  .bento > .s7 { grid-column: span 7; }  .bento > .s8 { grid-column: span 8; }
.bento > .s12 { grid-column: span 12; }
.bento > .r2 { grid-row: span 2; }

.bt { position: relative; overflow: hidden; border-radius: var(--radio); padding: 30px; display: flex; flex-direction: column; gap: .6rem; color: var(--oscuro); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.bt h1, .bt h2, .bt h3 { color: inherit; margin: 0; line-height: 1.08; }
.bt h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.bt p { margin: 0; color: inherit; }
.bt a { color: inherit; }
.bt:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(38,32,30,.16); }
.bt-ticker:hover, .bt-hero:hover { transform: none; box-shadow: none; }

.t-turq    { background: var(--turq); }
.t-mostaza { background: var(--mostaza); }
.t-cafe    { background: var(--cafe); color: #fff; }
.t-oscuro  { background: var(--oscuro); color: #fff; }
.t-claro   { background: var(--claro); }

/* Piezas */
.bt-etiqueta { display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; padding: .35rem .9rem; border-radius: 50rem; background: rgba(255,255,255,.7); color: var(--oscuro); font-size: .82rem; font-weight: 600; }
.bento-head .bt-etiqueta { background: var(--turq-suave); }
.bt-etiqueta-clara { background: rgba(255,255,255,.14); color: #fff; }
.bt-lead { font-size: 1.1rem; line-height: 1.5; max-width: 52ch; }
.bt-icono { font-size: 1.9rem; margin-bottom: .35rem; }
.bt-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .8rem; }
.bt-chip { display: inline-block; padding: .35rem .85rem; border-radius: 50rem; background: rgba(255,255,255,.65); color: var(--oscuro); font-size: .85rem; font-weight: 600; text-decoration: none; }
.t-oscuro .bt-chip, .t-cafe .bt-chip { background: rgba(255,255,255,.14); color: #fff; }
.bt-chips-claros .bt-chip { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
a.bt-chip:hover { background: var(--turq); color: var(--oscuro); }
.bt-insignia { position: absolute; top: 24px; right: 24px; padding: .3rem .8rem; border-radius: 50rem; background: var(--mostaza); color: var(--oscuro); font-size: .8rem; font-weight: 700; }
.bt-nota { font-size: .9rem; opacity: .8; margin-top: auto; }

.bt-botones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; padding-top: 1rem; }
.bt-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.4rem; border-radius: 50rem; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .25s, background .25s, color .25s; }
.bt-btn:hover { transform: translateY(-2px); }
.bt-btn-oscuro { background: var(--oscuro); color: #fff !important; }
.bt-btn-oscuro:hover { background: var(--cafe); }
.bt-btn-linea { border-color: currentColor; color: var(--oscuro); background: rgba(255,255,255,.35); }
.t-oscuro .bt-btn-linea { color: #fff; background: transparent; }
.bt-btn-turq { background: var(--turq); color: var(--oscuro) !important; }
.bt-btn-turq:hover { background: #fff; }
.bt-btn-linea-oscura { border-color: var(--oscuro); color: var(--oscuro); }
.bt-btn-linea-oscura:hover { background: var(--oscuro); color: #fff; }
.bt-btn-chico { padding: .5rem 1rem; font-size: .9rem; }

.bt-link { position: absolute; inset: 0; text-decoration: none; }
.bt-flecha { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--oscuro); color: #fff; transform: rotate(-45deg); transition: transform .35s, background .35s; }
.t-oscuro .bt-flecha, .t-cafe .bt-flecha { background: #fff; color: var(--oscuro); }
.bt:hover .bt-flecha { transform: rotate(0deg) scale(1.08); background: var(--turq); color: var(--oscuro); }

.bt-gigante { font-family: var(--f-titulo); font-size: clamp(4rem, 8vw, 6.5rem); line-height: .95; }
.bt-gigante-linea { font-family: var(--f-titulo); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; }
.bt-gigante-linea b { font-weight: 400; font-size: 1.6em; }

/* Portada */
.bt-hero { justify-content: center; min-height: 540px; padding: clamp(28px, 4vw, 54px); gap: 1rem; }
.bt-hero h1, .bt-hero h2 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.03; max-width: 14ch; }
.bt-hero em { font-style: normal; background: linear-gradient(transparent 60%, rgba(255,255,255,.7) 60%); }
.bt-hero > *:not(.spot) { /*position: relative;*/ z-index: 1; max-width: 80%; }
.bt-foto { padding: 0; min-height: 260px; }
.bt-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.bt-dra img { object-position: 50% 18%; }
.bt-foto:hover img { transform: scale(1.06); }
.bt-pill { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; padding: .7rem 1.1rem; border-radius: 22px; background: rgba(255,255,255,.92); color: var(--oscuro) !important; text-decoration: none; backdrop-filter: blur(6px); line-height: 1.2; }
.bt-pill span { font-size: .8rem; opacity: .75; }
.bt-contador { justify-content: space-between; min-height: 260px; }
.bt-contador .bt-gigante { color: var(--mostaza); }
.bt-contador-texto { max-width: 22ch; }
.bt-dato { min-height: 250px; }
.bt-dato .bt-gigante { color: var(--oscuro); }

/* Franja animada */
.bt-ticker { padding: 0; min-height: 0; border-radius: 50rem; }
.ticker-track { display: flex; gap: 2.5rem; width: max-content; padding: 1rem 0; white-space: nowrap; animation: ticker 38s linear infinite; font-weight: 600; }
.ticker-track i { color: var(--turq); margin-right: .5rem; }
.bt-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Planes */
.bt-plan { min-height: 270px; padding-right: 84px; }
.bt-vip { min-height: 560px; }
.bt-vip h3, .bt-vip h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.bt-vip .bt-icono { color: var(--mostaza); font-size: 2.6rem; }
.bt-vip > p { font-size: 1.15rem; line-height: 1.55; max-width: 46ch; }
.bt-plan .bt-chips { margin-right: -60px; }
.bt-gancho { min-height: 300px; padding: clamp(28px, 3.4vw, 44px); gap: 1rem; }
.bt-gancho h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 22ch; }
.bt-servicio { min-height: 250px; padding-right: 84px; }
.bt-servicio.s7 { min-height: 300px; }
.bt-servicio-img { position: absolute; right: 0; top: 0; width: 36%; height: 100%; object-fit: cover; object-position: 50% 40%; border-radius: 0 var(--radio) var(--radio) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); transition: transform .8s; }
.bt-servicio-img-2 { position: absolute; right: 0; top: 0; width: 28%; height: 100%; object-fit: cover; object-position: 50% 40%; border-radius: 0 var(--radio) var(--radio) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); transition: transform .8s; }
.bt-servicio:hover .bt-servicio-img { transform: scale(1.05); }
.bt-servicio.s7 h3, .bt-servicio.s7 h2, .bt-servicio.s7 p { max-width: 58%; }
.bt-ventaja { min-height: 200px; }
.bt-paso { min-height: 250px; }
.bt-pago { min-height: 230px; }
.bt-zona { min-height: 240px; scroll-margin-top: 110px; }
.bt-zonas { padding: clamp(28px, 4vw, 54px); }
.bt-zonas h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.bt-cta { min-height: 320px; justify-content: center; padding: clamp(28px, 5vw, 64px); }
.bt-cta h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); max-width: 22ch; }
.bt-cta p { font-size: 1.1rem; max-width: 52ch; }
.bt-cta > *:not(.spot) { position: relative; z-index: 1; }
.bt-cta .spot { opacity: .85; }
.bento-cta { padding-bottom: 56px; }

/* Manchas de jaguar flotantes */
.spot { position: absolute; border-radius: 48% 52% 55% 45%; background: var(--oscuro); opacity: .9; animation: flota 7s ease-in-out infinite; pointer-events: none; }
.sp1 { width: 46px; height: 38px; top: 9%;  right: 5%;  }
.sp2 { width: 28px; height: 24px; top: 24%; right: 11%; animation-delay: -2s; }
.sp3 { width: 54px; height: 44px; bottom: 11%; right: 5%; animation-delay: -4s; }
.sp4 { width: 22px; height: 18px; bottom: 30%; right: 12%; animation-delay: -1s; }
@keyframes flota { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(8deg); } }

/* ---------- Aparición al hacer scroll (solo si hay JavaScript) ---------- */
.js .bt { opacity: 0; transform: translateY(28px) scale(.50); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), box-shadow .35s; animation: bt-seguro .01s 4s forwards; }
.js .bt.in { opacity: 1; transform: none; }
.js .bt.in:hover { transform: translateY(-5px); }
.js .bt-ticker.in:hover, .js .bt-hero.in:hover { transform: none; }
@keyframes bt-seguro { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .bt { opacity: 1; transform: none; transition: none; animation: none; }
	.ticker-track, .spot { animation: none; }
	.bt, .bt-foto img, .bt-flecha { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.bento > .s3, .bento > .s4, .bento > .s5 { grid-column: span 6; }
	.bento > .s6, .bento > .s7, .bento > .s8, .bento > .s12 { grid-column: span 12; }
	.bento > .r2 { grid-row: auto; }
	.bt-hero { min-height: 0; }
	.bt-vip { min-height: 0; }
	.bt-servicio.s7 h3, .bt-servicio.s7 h2, .bt-servicio.s7 p { max-width: 62%; }
}
@media (max-width: 575px) {
	.bento > * { grid-column: span 12 !important; }
	.bt { padding: 24px; }
	.bt-plan, .bt-servicio { padding-right: 24px; padding-bottom: 84px; }
	.bt-plan .bt-chips { margin-right: 0; }
	/* .bt-servicio-img { display: none; } */
	.bt-servicio.s7 h3, .bt-servicio.s7 h2, .bt-servicio.s7 p { max-width: none; }
	.bt-ticker { border-radius: 28px; }
	.spot { display: none; }
	.bt-foto { min-height: 340px; }
}

/* ---------- Páginas interiores (servicios, planes, currículum, contacto) ---------- */
.vet-card { padding: 1.75rem; border: 0; border-radius: var(--radio); background: var(--claro); transition: transform .3s, box-shadow .3s; }
.vet-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(38,32,30,.12); }
.vet-card-icono { font-size: 2.2rem; color: var(--cafe); }
.vet-sidebar { padding: 1.5rem; border-radius: var(--radio); background: var(--claro); }
.vet-recuadro { padding: 1.25rem 1.5rem; border-radius: 22px; background: var(--mostaza-suave); border-left: 6px solid var(--mostaza); }
.vet-foto { border-radius: var(--radio) !important; box-shadow: 0 10px 28px rgba(38,32,30,.15); max-height: 460px; object-fit: cover; }
.vet-video video { width: 100%; max-width: 360px; border-radius: var(--radio); background: #000; display: block; margin: 0 auto; box-shadow: 0 10px 28px rgba(38,32,30,.2); }
.vet-retrato { border-radius: var(--radio); box-shadow: 0 14px 34px rgba(38,32,30,.2); object-fit: cover; max-width: 100%; height: auto; aspect-ratio: 1 / 1; }
.list-icons li > i { color: var(--cafe); }
.lead { font-size: 1.2rem; }

/* ---------- Color Menu ---------- */

#header .header-btn-collapse-nav {
	background: var(--cafe);
}
#header .header-nav-main:not(.header-nav-main-mobile-dark) nav > ul > li > a.active {
	background: var(--cafe);
}
#header .header-nav-main:not(.header-nav-main-mobile-dark) nav > ul > li > a {
	color: var(--cafe);
}
#header .header-nav.header-nav-line nav > ul:not(:hover) li > a.active {
color: var(--cafe);
}
#header .header-nav.header-nav-line nav > ul li:hover > a {
	color: var(--cafe);
}
	#header .header-nav.header-nav-line nav > ul:not(:hover) li > a.active:before {
	background: var(--cafe);
}

#header .header-nav.header-nav-line nav > ul li:hover > a:before {
	background: var(--cafe);
}

/* ---------- Botones ---------- */


html .btn-primary {
	background-color: var(--mostaza);
	border-color: var(--oscuro);
	color: #000;
}

html .btn-primary:hover,
html .btn-primary.hover {
	background-color: var(--oscuro);
	border-color: var(--turq);
	color: #FFF;
}
