/* =========================================================================
   Todo en Acero para Clínicas Veterinarias — hoja de estilos del tema
   Diseño propio. Sin frameworks ni fuentes externas (rápido y privado).
   ========================================================================= */

:root {
	--c-ink: #1f2933;
	--c-ink-soft: #52606d;
	--c-brand: #0b6b78;
	--c-brand-dark: #084c56;
	--c-brand-tint: #e6f2f3;
	--c-steel: #7b8794;
	--c-border: #d9e0e6;
	--c-paper: #ffffff;
	--c-paper-alt: #f4f6f8;
	--c-wa: #25d366;
	--c-wa-dark: #128c7e;

	--radius: 10px;
	--radius-lg: 18px;
	--container: 1120px;
	--container-narrow: 760px;

	--shadow-sm: 0 1px 2px rgba(16, 24, 32, .06), 0 1px 3px rgba(16, 24, 32, .10);
	--shadow-md: 0 6px 20px rgba(16, 24, 32, .08), 0 2px 6px rgba(16, 24, 32, .06);
	--shadow-lg: 0 18px 40px rgba(16, 24, 32, .14);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ----- Reset ligero ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--c-ink);
	background: var(--c-paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; color: var(--c-ink); }
h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { margin: 0 0 1rem; }

/* ----- Utilidades ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: clamp(3rem, 2rem + 6vw, 5.5rem) 0; }
.section--alt { background: var(--c-paper-alt); }
.section__head { max-width: 720px; margin: 0 0 2.25rem; }
.section__title { margin-bottom: .35em; }
.section__intro { color: var(--c-ink-soft); font-size: 1.075rem; margin: 0; }
.section__foot, .section__note { text-align: center; }
.section__foot { margin-top: 2.25rem; }
.section__note { color: var(--c-ink-soft); margin-top: 1.5rem; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: var(--c-brand-dark); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.tea-icon { width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; }

/* ----- Botones ----- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	padding: .8rem 1.35rem; border-radius: var(--radius);
	font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
	border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-dark); }
.btn--ghost { background: transparent; color: var(--c-brand-dark); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-brand); background: var(--c-brand-tint); }
.btn--wa { background: var(--c-wa); color: #05391f; }
.btn--wa:hover { background: #1fbe5b; }
.btn--wa-alt { background: var(--c-wa-dark); color: #fff; }
.btn--wa-alt:hover { background: #0f7568; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; margin-bottom: .6rem; }

:where(a, button, summary, input, [tabindex]):focus-visible {
	outline: 3px solid var(--c-brand); outline-offset: 2px; border-radius: 4px;
}

/* ----- Cabecera ----- */
.site-header {
	position: sticky; top: 0; z-index: 500;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: saturate(1.1) blur(6px);
	border-bottom: 1px solid var(--c-border);
	transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.site-brand { display: flex; align-items: center; margin-right: auto; }
.site-brand__logo, .custom-logo { max-height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav__list { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav__list a:hover { color: var(--c-brand-dark); }
.site-nav__cta { padding: .6rem 1rem; }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: 1px solid var(--c-border);
	border-radius: var(--radius); background: #fff; position: relative;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--c-ink); transition: .2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* ----- Hero ----- */
.hero {
	position: relative;
	background:
		radial-gradient(1200px 400px at 88% -10%, rgba(230, 242, 243, .5), transparent 60%),
		linear-gradient(100deg, #fff 0%, #fff 38%, rgba(255, 255, 255, .80) 52%, rgba(255, 255, 255, .34) 70%, rgba(18, 32, 42, .12) 100%),
		var(--hero-bg, none) right center / cover no-repeat,
		linear-gradient(180deg, #fff 0%, var(--c-paper-alt) 100%);
	padding: clamp(2.75rem, 2rem + 6vw, 5.5rem) 0 clamp(2.5rem, 2rem + 4vw, 4rem);
	border-bottom: 1px solid var(--c-border);
}
.hero__inner { position: relative; max-width: 620px; }
.hero__eyebrow {
	display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
	text-transform: uppercase; color: var(--c-brand-dark);
	background: var(--c-brand-tint); padding: .4rem .75rem; border-radius: 999px; margin: 0 0 1rem;
}
.hero__title { max-width: 15ch; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: var(--c-ink-soft); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.6rem 0 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.hero__trust li { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; color: var(--c-ink); }
.hero__trust .tea-icon { color: var(--c-brand); }

/* ----- Cuadrícula de tarjetas (productos) ----- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
	padding: 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 14px; background: var(--c-brand-tint); color: var(--c-brand-dark);
	margin-bottom: 1rem;
}
.card__icon .tea-icon { width: 26px; height: 26px; }
.card__text { color: var(--c-ink-soft); font-size: .97rem; flex: 1; }
.card__cta {
	display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
	font-weight: 700; text-decoration: none; color: var(--c-brand-dark);
}
.card__cta:hover { gap: .65rem; }
.card__cta .tea-icon { width: 1.1em; height: 1.1em; }

/* ----- Proceso (pasos) ----- */
#proceso.section--alt {
	background:
		linear-gradient(rgba(244, 246, 248, .95), rgba(244, 246, 248, .965)),
		var(--proceso-bg, none) center / cover no-repeat fixed;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); counter-reset: none; }
.steps__item { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.25rem; }
.steps__num { font-weight: 800; font-size: 1.35rem; color: var(--c-brand); flex: 0 0 auto; letter-spacing: 0; }
.steps__title { margin-bottom: .25em; }
.steps__text { margin: 0; color: var(--c-ink-soft); font-size: .95rem; }

/* ----- Feed de Facebook ----- */
.fb-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fb-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.fb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fb-card__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.fb-card__media { display: block; aspect-ratio: 4 / 3; background: var(--c-paper-alt); }
.fb-card__media img { width: 100%; height: 100%; object-fit: cover; }
.fb-card__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.fb-card__text { color: var(--c-ink); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fb-card__meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; color: var(--c-steel); }
.fb-card__cta { font-weight: 700; color: var(--c-brand-dark); }
.fb-feed__empty { text-align: center; background: var(--c-paper-alt); border: 1px dashed var(--c-border); border-radius: var(--radius-lg); padding: 2.5rem 1.5rem; }
.fb-feed__empty p { color: var(--c-ink-soft); max-width: 46ch; margin: 0 auto 1.25rem; }

/* ----- Nosotros ----- */
.about { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
.about__text p { color: var(--c-ink-soft); }
.about__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.about__list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.about__list .tea-icon { color: var(--c-brand); flex: 0 0 auto; margin-top: .1em; }

/* ----- Features (pago/envío) ----- */
.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.4rem; }
.feature__icon { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; background: var(--c-brand-tint); color: var(--c-brand-dark); margin-bottom: .85rem; }
.feature p { margin: 0; color: var(--c-ink-soft); font-size: .95rem; }

/* ----- Chips (ciudades) ----- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { background: #fff; border: 1px solid var(--c-border); border-radius: 999px; padding: .4rem .85rem; font-size: .9rem; color: var(--c-ink-soft); }

/* ----- FAQ ----- */
.faq { border-top: 1px solid var(--c-border); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q {
	cursor: pointer; list-style: none; padding: 1.15rem 2.25rem 1.15rem 0; position: relative;
	font-weight: 700; font-size: 1.05rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
	content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
	font-size: 1.4rem; color: var(--c-brand); line-height: 1;
}
.faq__item[open] .faq__q::after { content: "\2013"; }
.faq__a { padding: 0 0 1.25rem; color: var(--c-ink-soft); }
.faq__a p { margin: 0; }

/* ----- CTA final ----- */
.cta-final {
	background:
		linear-gradient(160deg, rgba(8, 76, 86, .93), rgba(11, 107, 120, .85)),
		var(--cta-bg, none) center / cover no-repeat,
		linear-gradient(160deg, var(--c-brand-dark), var(--c-brand));
	color: #fff;
	padding: clamp(3rem, 2rem + 6vw, 5rem) 0;
}
.cta-final__inner { text-align: center; max-width: 640px; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, .9); }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin: 1.75rem 0 1.25rem; }
.cta-final__addr { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; font-size: .92rem; color: rgba(255, 255, 255, .9); }
.cta-final__addr a { color: #fff; }

/* ----- Pie de página ----- */
.site-footer { background: #12202a; color: #cdd6de; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr 1fr; padding: 3rem 20px; }
.site-footer__brand { font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: .6rem; }
.site-footer__heading { font-weight: 700; color: #fff; margin-bottom: .9rem; }
.site-footer__muted { color: #9fb0bd; font-size: .92rem; display: flex; gap: .45rem; align-items: flex-start; }
.site-footer__muted .tea-icon { flex: 0 0 auto; margin-top: .15em; color: var(--c-wa); }
.site-footer__legal { display: block; margin-top: 1rem; line-height: 1.7; }
.site-footer__links { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.site-footer__links a { color: #cdd6de; text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__fb { display: inline-flex; align-items: center; gap: .5rem; color: #cdd6de; text-decoration: none; margin-top: .5rem; font-weight: 600; }
.site-footer__fb:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; font-size: .85rem; }
.site-footer__bottom p { margin: .15rem 0; }

/* ----- Botón flotante de WhatsApp ----- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.wa-float__toggle {
	display: inline-flex; align-items: center; gap: .55rem;
	background: var(--c-wa); color: #05391f; border: none; border-radius: 999px;
	padding: .8rem 1.1rem; font-weight: 800; font-size: .95rem; cursor: pointer;
	box-shadow: var(--shadow-lg);
}
.wa-float__toggle .tea-icon { width: 1.5em; height: 1.5em; }
.wa-float__menu { display: flex; flex-direction: column; gap: .5rem; }
.wa-float__option {
	display: flex; align-items: center; gap: .6rem; background: #fff; color: var(--c-ink);
	border: 1px solid var(--c-border); border-radius: 14px; padding: .7rem .9rem;
	text-decoration: none; box-shadow: var(--shadow-md); font-size: .88rem; line-height: 1.25;
}
.wa-float__option .tea-icon { color: var(--c-wa-dark); width: 1.7em; height: 1.7em; }
.wa-float__option:hover { border-color: var(--c-wa); }

/* ----- Prosa (páginas legales) ----- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.page-title { margin-bottom: .3em; }
.page-entry__meta { color: var(--c-steel); font-size: .9rem; margin-top: 0; }
.page-entry__back { margin-top: 2.5rem; }
.page-entry__back a { font-weight: 700; text-decoration: none; }

/* ----- Responsivo ----- */
@media (max-width: 900px) {
	.about { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
		gap: 0; background: #fff; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-md);
		padding: .5rem 20px 1.25rem; transform: translateY(-140%); transition: transform .25s ease; max-height: calc(100vh - 70px); overflow-y: auto;
	}
	.site-nav.is-open { transform: translateY(0); }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list li { border-bottom: 1px solid var(--c-border); }
	.site-nav__list a { display: block; padding: .95rem 0; }
	.site-nav__cta { margin-top: 1rem; }
}
@media (max-width: 900px) {
	/* En pantallas pequeñas la foto de fondo del hero compite con el texto:
	   subimos la opacidad del velo para asegurar legibilidad. */
	.hero {
		background:
			linear-gradient(180deg, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, .97) 65%, rgba(255, 255, 255, .99) 100%),
			var(--hero-bg, none) center / cover no-repeat,
			linear-gradient(180deg, #fff 0%, var(--c-paper-alt) 100%);
	}
	.hero__inner { max-width: none; }
	/* background-attachment: fixed no funciona bien en móvil */
	#proceso.section--alt {
		background:
			linear-gradient(rgba(244, 246, 248, .95), rgba(244, 246, 248, .965)),
			var(--proceso-bg, none) center / cover no-repeat scroll;
	}
}
@media (max-width: 620px) {
	.site-footer__grid { grid-template-columns: 1fr; }
	.wa-float__label { display: none; }
	.hero__actions .btn, .cta-final__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
