/*
Theme Name: Veterinario
Theme URI: https://veterinario-online.com
Author: OpenCode
Description: Tema ligero y editorial para veterinario-online.com.
Version: 1.0.0
Text Domain: veterinario
*/

:root {
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-strong: #d9ebff;
	--text: #24415f;
	--muted: #5f7691;
	--line: #bfd8f2;
	--brand: #7fb0e4;
	--brand-dark: #4f88c3;
	--brand-soft: #cfe4fb;
	--accent: #bad8f7;
	--shadow: 0 18px 40px rgba(63, 104, 152, 0.08);
	--radius-lg: 24px;
	--radius-md: 18px;
	--radius-sm: 12px;
	--max: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #ffffff !important;
	color: var(--text);
	line-height: 1.65;
	overflow-x: hidden;
}

a {
	color: var(--brand-dark);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--brand);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

input,
button,
textarea,
select {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 1rem;
	padding: 0.75rem 1rem;
	background: var(--surface);
	z-index: 1000;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}

.site-shell,
.site-header__inner,
.hero,
.content-grid,
.site-footer__inner {
	width: min(calc(100% - 2rem), var(--max));
	margin: 0 auto;
	max-width: 100%;
}

.site-header {
	position: relative !important;
	top: auto !important;
	z-index: 200;
	backdrop-filter: blur(16px);
	background: rgba(214, 232, 252, 0.96);
	border-bottom: 1px solid #bfd8f2;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: nowrap;
	padding: 1rem 0;
	align-content: flex-start;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-width: 0;
}

.brand-mark {
	width: 58px;
	height: 58px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--brand);
	box-shadow: 0 10px 25px rgba(47, 143, 91, 0.22);
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 1.35rem;
	font-weight: 800;
}

.brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brand-mark .custom-logo-link {
	width: 100%;
	height: 100%;
	display: block;
}

.brand-copy {
	min-width: 0;
}

.site-title {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	line-height: 1.1;
	font-weight: 800;
}

.site-title a {
	color: var(--text);
}

.site-tagline {
	margin: 0.2rem 0 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.main-nav .menu-list,
.main-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
}

.main-nav {
	margin-left: auto;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
}

.menu-toggle {
	display: none;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	padding: 0.7rem;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #ffffff;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	flex-direction: column;
}

.menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--text);
	border-radius: 999px;
}

.main-nav a {
	display: inline-flex;
	align-items: center;
	padding: 0.72rem 1rem;
	border-radius: 999px;
	color: var(--text);
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a:hover,
.main-nav a:focus {
	background: var(--brand-soft);
	color: var(--brand-dark);
	transform: translateY(-1px);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	padding: 1.5rem 0 2rem;
	align-items: stretch;
}

.hero-banner {
	width: 100%;
	margin: 1.25rem 0 0;
}

.hero-card,
.hero-panel,
.post-card,
.widget,
.archive-header,
.single-card,
.comment-respond,
.comments-area,
.page-card,
.pagination,
.empty-state {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.hero-card {
	padding: 1rem;
	background: #dcecff;
	position: relative;
	overflow: hidden;
}

.comments-area {
	margin: 2rem 2rem 0 2rem !important;
	padding: 1.5rem !important;
}

.comments-area .commentlist {
	padding-left: 0;
	list-style: none;
}

.comments-area .comment-body,
.comments-area .comment-respond,
.comments-area #respond {
	padding: 1rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: #f9fbff;
	margin-top: 1rem;
}

.comments-area .comment-content,
.comments-area .comment-metadata,
.comments-area .reply,
.comments-area .comment-notes,
.comments-area .comment-form {
	margin-left: 0.4rem;
	margin-right: 0.4rem;
}

.hero-media {
	position: relative;
	border-radius: 0;
	overflow: hidden;
	background: #cfe4fb;
}

.hero-media--full {
	min-height: 0;
}

.hero-media--edge {
	border-radius: 0;
	box-shadow: none;
}

.hero-media img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.hero-media--full img {
	position: relative;
	inset: auto;
	height: auto;
}

.hero-media__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 35, 58, 0.18) 0%, rgba(18, 35, 58, 0.62) 100%);
	pointer-events: none;
}

.hero-media__content {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 0;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	color: #ffffff;
}

.hero-media__content--wide {
	width: min(calc(100% - 2rem), var(--max));
	margin: 0 auto;
	max-width: var(--max);
}

.hero-media__content--visible {
	padding-top: 4.5rem;
	padding-bottom: 2rem;
	justify-content: flex-start;
}

.hero-media__caption {
	margin-top: 1rem;
	padding: 1rem 1.1rem;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(6px);
	color: #ffffff;
}

.hero-media__caption strong {
	display: block;
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
}

.hero-media__caption p {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
}

.hero-media__content .eyebrow {
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.hero-media__content .hero-title,
.hero-media__content .hero-copy {
	color: #ffffff;
}

.hero-media__content .hero-copy {
	max-width: 56ch;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand-dark);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hero-title {
	margin: 1rem 0 0.85rem;
	font-size: clamp(2rem, 5vw, 3.8rem);
	line-height: 0.98;
	letter-spacing: -0.04em;
}

.hero-copy {
	margin: 0;
	font-size: 1.05rem;
	color: var(--muted);
	max-width: 64ch;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.5rem;
}

.button-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 1.25rem;
	border-radius: 999px;
	font-weight: 700;
	border: 1px solid transparent;
}

.button-link--primary {
	background: var(--brand);
	color: #fff;
}

.button-link--primary:hover,
.button-link--primary:focus {
	background: var(--brand-dark);
	color: #fff;
}

.button-link--secondary {
	background: rgba(255, 255, 255, 0.9);
	border-color: var(--line);
	color: var(--text);
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
	margin-top: 1.9rem;
}

.hero-stat {
	padding: 1rem;
	border-radius: var(--radius-md);
	background: #edf5ff;
	border: 1px solid #bfd8f2;
}

.hero-stat strong {
	display: block;
	font-size: 1.55rem;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.hero-panel {
	padding: 1.35rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
	background: #eaf3ff !important;
	color: var(--text) !important;
}

.hero-panel h2,
.hero-panel p,
.hero-panel a {
	color: inherit;
}

.hero-panel h2 {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.15;
	color: var(--text);
}

.hero-panel p {
	margin: 0.7rem 0 0;
	color: var(--muted);
}

.topic-list,
.footer-links,
.post-meta,
.taxonomy-links,
.post-navigation .nav-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.topic-list {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.1rem;
}

.topic-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.95rem 1rem;
	border-radius: var(--radius-md);
	background: #f5f9ff !important;
	border: 1px solid var(--line) !important;
	font-weight: 600;
}

.topic-list span {
	color: var(--muted);
	font-size: 0.92rem;
	white-space: nowrap;
}

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	gap: 2rem;
	padding-bottom: 3rem;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-content: start;
}

.archive-header,
.single-card,
.page-card,
.empty-state {
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.archive-header h1,
.single-card h1,
.page-card h1 {
	margin: 0;
	font-size: clamp(1.7rem, 4vw, 2.7rem);
	line-height: 1.05;
}

.archive-description,
.entry-content,
.entry-summary,
.page-content {
	color: var(--muted);
}

.post-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.post-card__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #d8eafe;
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card__thumb img,
.post-card:focus-within .post-card__thumb img {
	transform: scale(1.04);
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.35rem;
	gap: 0.85rem;
}

.post-card__title {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.15;
}

.post-card__title a {
	color: var(--text);
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	font-size: 0.92rem;
	color: var(--muted);
}

.category-pill,
.tag-cloud-link,
.taxonomy-links a,
.page-numbers,
.search-submit,
button,
input[type="submit"] {
	border-radius: 999px;
}

.category-pill,
.taxonomy-links a,
.page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.8rem;
	background: var(--surface-strong);
	border: 1px solid var(--line);
	color: var(--brand-dark);
	font-weight: 600;
	font-size: 0.88rem;
}

.post-card__footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.read-more {
	font-weight: 700;
}

.sidebar-stack {
	display: grid;
	gap: 1.25rem;
	align-content: start;
}

.widget {
	padding: 1.25rem;
	background: #eaf3ff;
}

.widget-title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	line-height: 1.15;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.8rem;
}

.widget li {
	color: var(--muted);
}

.widget a {
	color: var(--text);
	font-weight: 600;
}

.widget_search form,
.search-form {
	display: flex;
	gap: 0.7rem;
}

.search-field,
input[type="search"],
input[type="text"],
input[type="email"],
textarea {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #f5faff;
	color: var(--text);
}

.contact-form {
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
}

.contact-form p {
	margin: 0;
}

.contact-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 700;
	color: var(--text);
}

.contact-feedback {
	padding: 0.9rem 1rem;
	border-radius: var(--radius-sm);
	margin: 1rem 0;
	font-weight: 600;
}

.contact-feedback--success {
	background: #e7f7ea;
	color: #23643a;
	border: 1px solid #b9e4c5;
}

.contact-feedback--error {
	background: #fff1f1;
	color: #8b2d2d;
	border: 1px solid #f0c2c2;
}

.search-submit,
button,
input[type="submit"] {
	border: 0;
	padding: 0.9rem 1.15rem;
	background: var(--brand);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.search-submit:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--brand-dark);
}

.single-card__thumbnail {
	margin: 1.5rem 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.single-card__thumbnail img,
.entry-content img,
.page-content img,
.wp-block-image img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content figure,
.page-content figure,
.wp-block-image,
.wp-caption,
figure.aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.entry-content > *:first-child,
.page-content > *:first-child,
.comment-respond > *:first-child,
.comments-area > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child,
.page-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
	color: var(--text);
	line-height: 1.15;
	margin-top: 1.8rem;
}

.entry-content blockquote,
.page-content blockquote {
	margin: 1.5rem 0;
	padding: 1.25rem 1.4rem;
	border-left: 4px solid var(--brand);
	background: var(--surface-strong);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.taxonomy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.post-navigation a {
	display: block;
	padding: 1rem 1.1rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	min-height: 100%;
}

.pagination {
	margin-top: 1.5rem;
	padding: 1rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.site-footer {
	padding: 0 0 2.5rem;
}

.site-footer__inner {
	background: #7faee0;
	border-radius: 28px;
	padding: 1.5rem;
	color: rgba(255, 255, 255, 0.92);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.site-footer__inner h2,
.site-footer__inner h3,
.site-footer__inner a {
	color: #f8fffb;
}

.footer-links {
	display: grid;
	gap: 0.6rem;
}

.footer-note {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.82);
}

.alignwide,
.alignfull {
	width: 100%;
}

.wp-block-image img,
.entry-content img,
.page-content img {
	border-radius: var(--radius-md);
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
	color: var(--muted);
	font-size: 0.92rem;
}

.sticky .post-card__body,
.sticky.single-card {
	background-image: none;
	background-color: #dcecff;
}

@media (max-width: 980px) {
	.hero,
	.content-grid,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.hero-panel {
		order: 2;
		max-width: 100%;
	}

	.posts-grid {
		grid-template-columns: 1fr;
	}

	.post-card__footer,
	.single-card .post-meta,
	.taxonomy-links {
		flex-wrap: wrap;
	}

	.site-header {
		position: static;
	}

	.site-header__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.hero-banner {
		margin-top: 1rem;
	}

	.main-nav .menu-list,
	.main-nav ul {
		justify-content: flex-start;
		padding-bottom: 0.2rem;
	}

	.main-nav a {
		padding: 0.68rem 0.9rem;
	}
}

@media (max-width: 980px) {
	.menu-toggle {
		display: inline-flex !important;
		align-self: flex-end;
		position: relative;
		z-index: 30;
	}

	.main-nav {
		display: none !important;
		margin-left: 0;
		width: 100%;
		overflow: visible;
		position: relative;
		z-index: 10;
	}

	.main-nav.is-open {
		display: block !important;
		background: #eef6ff;
		padding: 0.35rem;
		border: 1px solid var(--line);
		border-radius: 18px;
		box-shadow: 0 18px 40px rgba(36, 65, 95, 0.18);
		margin-top: 0.75rem;
	}

	.main-nav .menu-list,
	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
		padding-top: 0;
	}

	.main-nav a {
		width: 100%;
		justify-content: flex-start;
		background: #ffffff;
		border: 1px solid var(--line);
		padding: 0.85rem 1rem;
	}

	.hero-panel,
	.sidebar-stack {
		display: none;
	}

	.content-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.site-shell,
	.site-header__inner,
	.hero,
	.content-grid,
	.site-footer__inner {
		width: min(calc(100% - 1.1rem), var(--max));
	}

	.hero-card,
	.hero-panel,
	.post-card__body,
	.widget,
	.archive-header,
	.single-card,
	.page-card,
	.empty-state {
		padding: 1.1rem;
	}

	body {
		font-size: 15px;
	}

	.site-header__inner {
		padding: 0.8rem 0;
	}

	.brand {
		align-items: flex-start;
	}

	.brand-mark {
		width: 52px;
		height: 52px;
	}

	.site-tagline {
		font-size: 0.88rem;
	}

	.hero-media__content {
		position: static;
		width: 100%;
		padding: 1rem;
		background: #24415f;
	}

	.hero-media__content--visible {
		padding-top: 1rem;
		padding-bottom: 1rem;
	}

	.hero-media__overlay {
		display: none;
	}

	.hero-title {
		font-size: clamp(1.65rem, 9vw, 2.35rem);
		line-height: 1.04;
	}

	.hero-copy {
		font-size: 0.98rem;
	}

	.hero-media__caption {
		padding: 0.85rem 0.9rem;
	}

	.hero-media__caption strong {
		font-size: 1rem;
	}

	.hero-stats {
		grid-template-columns: 1fr;
	}

	.hero-media img {
		height: auto;
	}

	.hero-media__content--wide {
		width: min(calc(100% - 1.1rem), var(--max));
	}

	.hero-banner .button-link,
	.contact-form input[type="submit"],
	.contact-form button,
	.search-submit {
		width: 100%;
	}

	.contact-form {
		gap: 0.85rem;
	}

	.contact-form input,
	.contact-form textarea,
	.contact-form select {
		font-size: 16px;
		padding: 0.85rem 0.95rem;
	}

	.comments-area {
		margin: 1.25rem 0 0 0 !important;
		padding: 1rem !important;
	}

	.comments-area .comment-body,
	.comments-area .comment-respond,
	.comments-area #respond {
		padding: 0.9rem;
	}

	.comments-area .comment-content,
	.comments-area .comment-metadata,
	.comments-area .reply,
	.comments-area .comment-notes,
	.comments-area .comment-form {
		margin-left: 0;
		margin-right: 0;
	}

	.single-card__thumbnail,
	.page-card,
	.single-card,
	.comments-area,
	.comment-respond {
		border-radius: 18px;
	}

	.post-card__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.single-card,
	.page-card,
	.archive-header,
	.widget,
	.post-card__body {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.post-navigation a {
		padding: 0.95rem 1rem;
	}

	.site-footer__inner {
		padding: 1.2rem;
		border-radius: 20px;
	}

	.widget_search form,
	.search-form,
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
		display: grid;
	}

	.widget ul,
	.footer-links,
	.topic-list {
		gap: 0.7rem;
	}
}
