/*
Theme Name: Taller Montiel
Template: twentytwentyfive
Description: Tema hijo de Twenty Twenty-Five con el branding de Taller Montiel (azul marino, dorado y cromo).
Version: 1.0.0
Text Domain: taller-montiel
*/

:root {
	--tm-navy-950: var(--wp--preset--color--navy-950);
	--tm-navy-900: var(--wp--preset--color--navy-900);
	--tm-navy-800: var(--wp--preset--color--navy-800);
	--tm-gold: var(--wp--preset--color--gold-500);
	--tm-gold-light: var(--wp--preset--color--gold-300);
	--tm-chrome: var(--wp--preset--color--chrome);
	--tm-gold-grad: var(--wp--preset--gradient--gold);
	--tm-radius: 14px;
	--tm-shadow: 0 18px 40px -22px rgba(5, 15, 31, .45);
	--tm-section-y: clamp(3.5rem, 8vw, 6.5rem);
	--tm-wa: #25D366;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
.wp-site-blocks > footer { margin-block-start: 0; }

/* ---------- Icons (mask-based, recolorable) ---------- */
.tm-ico-shield    { --tm-icon: url(assets/img/icons/shield.svg); }
.tm-ico-gear      { --tm-icon: url(assets/img/icons/gear.svg); }
.tm-ico-tools     { --tm-icon: url(assets/img/icons/tools.svg); }
.tm-ico-flame     { --tm-icon: url(assets/img/icons/flame.svg); }
.tm-ico-lamp      { --tm-icon: url(assets/img/icons/lamp.svg); }
.tm-ico-umbrella  { --tm-icon: url(assets/img/icons/umbrella.svg); }
.tm-ico-pen       { --tm-icon: url(assets/img/icons/pen.svg); }
.tm-ico-message   { --tm-icon: url(assets/img/icons/message.svg); }
.tm-ico-clipboard { --tm-icon: url(assets/img/icons/clipboard.svg); }
.tm-ico-hammer    { --tm-icon: url(assets/img/icons/hammer.svg); }
.tm-ico-truck     { --tm-icon: url(assets/img/icons/truck.svg); }
.tm-ico-phone     { --tm-icon: url(assets/img/icons/phone.svg); }
.tm-ico-pin       { --tm-icon: url(assets/img/icons/pin.svg); }
.tm-ico-whatsapp  { --tm-icon: url(assets/img/icons/whatsapp.svg); }

/* ---------- Shared bits ---------- */
.tm-eyebrow {
	display: inline-flex; align-items: center; gap: .75rem;
	font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
	color: var(--tm-gold);
}
.tm-eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: var(--tm-gold-grad); }
.tm-script {
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2;
	color: var(--tm-gold-light);
	margin-block-start: .5rem !important;
}
.tm-section { padding-block: var(--tm-section-y); }
.tm-section--dark {
	background: var(--wp--preset--gradient--night);
	color: #DCE3EC;
}
.tm-section--dark :where(h1, h2, h3, h4) { color: #fff; }
.tm-section-head { text-align: center; margin-inline: auto; max-width: 720px; margin-block-end: clamp(2rem, 5vw, 3.25rem) !important; }
.tm-section-head h2 { margin-block-start: .6rem; }
.tm-section-head h2::after {
	content: ""; display: block; width: 72px; height: 4px; border-radius: 4px;
	margin: 1rem auto 0; background: var(--tm-gold-grad);
}
.tm-section-head .tm-lead { color: var(--wp--preset--color--steel); }
.tm-section--dark .tm-section-head .tm-lead { color: #AEB9C7; }
.tm-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background .2s; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.tm-btn-gold .wp-block-button__link {
	background: var(--tm-gold-grad); color: var(--tm-navy-950);
	box-shadow: 0 10px 24px -10px rgba(201, 162, 78, .8);
}
.tm-btn-gold .wp-block-button__link:hover { color: var(--tm-navy-950); box-shadow: 0 14px 30px -10px rgba(233, 207, 146, .9); }
.tm-btn-outline .wp-block-button__link {
	background: transparent; color: #fff; border: 1.5px solid rgba(201, 206, 211, .55);
}
.tm-btn-outline .wp-block-button__link:hover { border-color: var(--tm-gold-light); color: var(--tm-gold-light); }
.tm-btn-wa .wp-block-button__link { display: inline-flex; align-items: center; gap: .6rem; }
.tm-btn-wa .wp-block-button__link::before {
	content: ""; width: 1.25em; height: 1.25em; background: currentColor;
	-webkit-mask: url(assets/img/icons/whatsapp.svg) center / contain no-repeat;
	        mask: url(assets/img/icons/whatsapp.svg) center / contain no-repeat;
}

/* ---------- Header ---------- */
.tm-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(5, 15, 31, .97); /* no backdrop-filter: it would trap the fixed mobile menu overlay */
	border-bottom: 1px solid rgba(201, 162, 78, .35);
	padding-block: .7rem;
}
body.admin-bar .tm-header { top: var(--wp-admin--admin-bar--height, 32px); }
.tm-header__inner { gap: 1.5rem; }
.tm-brand { gap: .8rem; }
.tm-brand .wp-block-site-logo img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.tm-wordmark { margin: 0; line-height: 1; }
.tm-wordmark a { text-decoration: none; color: #fff; display: grid; }
.tm-wordmark span {
	font-family: var(--wp--preset--font-family--body); font-weight: 600;
	font-size: .72rem; letter-spacing: .42em; color: var(--tm-chrome);
}
.tm-wordmark strong {
	font-family: var(--wp--preset--font-family--display); font-weight: 800; font-style: italic;
	font-size: 1.65rem; letter-spacing: .03em; text-transform: uppercase;
	background: var(--wp--preset--gradient--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm-nav { font-weight: 600; font-size: .95rem; gap: 1.75rem; }
.tm-nav, .tm-nav a { color: #E6EBF1; }
.tm-nav .wp-block-navigation-item__content { text-decoration: none; position: relative; padding-block: .3rem; }
.tm-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--tm-gold-grad); transform: scaleX(0); transition: transform .2s ease;
}
.tm-nav .wp-block-navigation-item__content:hover::after,
.tm-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.tm-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--tm-navy-950) !important; color: #fff !important; padding: 2rem;
}
.tm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; gap: 1.25rem; padding-top: 3rem; }
.tm-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.tm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.4rem; }
.tm-header__cta .wp-block-button__link { padding: .65rem 1.2rem; font-size: .85rem; }
@media (max-width: 781px) {
	.tm-header__cta { display: none; }
	.tm-wordmark strong { font-size: 1.35rem; }
}

/* ---------- Hero ---------- */
.tm-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--wp--preset--gradient--night);
	color: #DCE3EC;
	padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3.5rem, 8vw, 6rem);
}
.tm-hero::before { /* woven texture, like the dark logo backdrop */
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
	background:
		repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 5px);
}
.tm-hero::after { /* gold flare */
	content: ""; position: absolute; z-index: -1; width: 46vw; height: 46vw; right: -6vw; top: -10vw;
	background: radial-gradient(circle, rgba(233, 207, 146, .22) 0%, rgba(233, 207, 146, 0) 60%);
}
.tm-hero__title {
	color: #fff; margin-block-start: 1rem;
	font-style: italic; font-weight: 800;
	background: linear-gradient(180deg, #FFFFFF 0%, #E3E7EB 55%, #A9B1BA 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm-hero__lead { font-size: var(--wp--preset--font-size--large); max-width: 34rem; color: #C3CDD9; }
.tm-hero .wp-block-buttons { margin-block-start: 2rem; }
.tm-hero__logo img {
	width: 100%; height: auto;
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(233, 207, 146, .18));
	animation: tm-float 7s ease-in-out infinite;
}
@keyframes tm-float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .tm-hero__logo img { animation: none; } }
@media (max-width: 781px) {
	.tm-hero__cols { flex-direction: column-reverse; }
	.tm-hero__logo { max-width: 260px; margin-inline: auto; }
}

/* ---------- Values strip ---------- */
.tm-values { background: var(--tm-navy-800); border-block: 1px solid rgba(201, 162, 78, .3); padding-block: 1.6rem; }
.tm-values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 !important; }
.tm-value {
	position: relative; margin: 0 !important; padding: .6rem 1.4rem .6rem 4.2rem;
	color: #AEB9C7; font-size: .9rem; line-height: 1.45; min-height: 3rem;
}
.tm-value strong { display: block; color: #fff; font-size: 1rem; }
.tm-value::before {
	content: ""; position: absolute; left: 1.2rem; top: .7rem; width: 2.1rem; height: 2.1rem;
	background: var(--tm-gold-grad);
	-webkit-mask: var(--tm-icon) center / contain no-repeat; mask: var(--tm-icon) center / contain no-repeat;
}
.tm-value + .tm-value::after {
	content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px;
	background: linear-gradient(transparent, rgba(201, 162, 78, .6), transparent);
}
@media (max-width: 900px) { .tm-value + .tm-value::after { display: none; } .tm-value { padding-block: 1rem; } }

/* ---------- Cards ---------- */
.tm-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem !important; }
.tm-grid > * { margin: 0 !important; }
.tm-card {
	position: relative; overflow: hidden;
	background: #fff; border: 1px solid #E4E1D8; border-radius: var(--tm-radius);
	padding: 2rem 1.6rem 1.75rem; box-shadow: var(--tm-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.tm-card::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tm-gold-grad);
	transform: scaleX(.18); transform-origin: left; transition: transform .3s ease;
}
.tm-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgba(5, 15, 31, .55); }
.tm-card:hover::before { transform: scaleX(1); }
.tm-card h3 { margin-block-start: 0; }
.tm-card p { color: #4A5361; font-size: .97rem; }
.tm-card .tm-more { margin-block-start: auto; }
.tm-more a { font-weight: 700; text-decoration: none; font-size: .9rem; }
.tm-more a::after { content: " →"; }

/* icon badge: navy disc with gold glyph (like the ad icons) */
.tm-icon { position: relative; padding-top: 4.6rem; }
.tm-icon::before, .tm-icon::after { content: ""; position: absolute; top: 0; left: 0; width: 3.6rem; height: 3.6rem; }
.tm-icon::before { border-radius: 50%; background: var(--tm-navy-900); box-shadow: inset 0 0 0 2px rgba(201, 162, 78, .55); }
.tm-icon::after {
	background: var(--tm-gold-light); transform: scale(.5);
	-webkit-mask: var(--tm-icon) center / contain no-repeat; mask: var(--tm-icon) center / contain no-repeat;
}

/* ---------- Gallery ---------- */
.tm-gallery { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem !important; }
.tm-gallery > * { margin: 0 !important; }
.tm-gallery .wp-block-image { position: relative; border-radius: var(--tm-radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--tm-shadow); }
.tm-gallery .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tm-gallery .wp-block-image:hover img { transform: scale(1.05); }
.tm-gallery .wp-block-image figcaption {
	position: absolute; inset: auto 0 0; margin: 0; padding: 2.5rem 1.2rem 1rem; text-align: left;
	background: linear-gradient(transparent, rgba(5, 15, 31, .92));
	color: #fff; font-weight: 600; font-size: .95rem;
}
.tm-gallery .wp-block-image figcaption::before {
	content: ""; display: block; width: 2rem; height: 3px; margin-bottom: .5rem; background: var(--tm-gold-grad);
}

/* ---------- Steps ---------- */
.tm-steps { counter-reset: tm-step; }
.tm-step { counter-increment: tm-step; position: relative; padding: 1.5rem 0 0 !important; border-top: 2px solid #E4E1D8; }
.tm-step::before {
	content: "0" counter(tm-step);
	display: block; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-style: italic;
	font-size: 3rem; line-height: 1; margin-bottom: .5rem;
	background: var(--tm-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm-step h3 { font-size: 1.35rem; margin: 0 0 .4rem; }
.tm-step p { margin: 0; color: #4A5361; font-size: .97rem; }

/* ---------- Split (service detail) ---------- */
.tm-split { gap: clamp(1.5rem, 5vw, 4rem) !important; }
.tm-split + .tm-split { margin-block-start: clamp(3rem, 7vw, 5rem) !important; }
.tm-split .wp-block-image img { border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tm-checklist { list-style: none; padding-left: 0; }
.tm-checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.tm-checklist li::before {
	content: ""; position: absolute; left: 0; top: .25em; width: 1.15rem; height: 1.15rem;
	background: var(--tm-gold);
	-webkit-mask: url(assets/img/icons/shield.svg) center / contain no-repeat; mask: url(assets/img/icons/shield.svg) center / contain no-repeat;
}

/* ---------- CTA band ---------- */
.tm-cta {
	position: relative; overflow: hidden; isolation: isolate; text-align: center;
	background: var(--tm-navy-950); color: #C3CDD9;
	padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.tm-cta::before {
	content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; z-index: -1;
	background: radial-gradient(50% 50% at 50% 50%, rgba(201, 162, 78, .25), transparent 70%);
}
.tm-cta h2 { color: #fff; }
.tm-cta__phone {
	font-family: var(--wp--preset--font-family--display); font-weight: 800; font-style: italic;
	font-size: clamp(2.8rem, 8vw, 5rem); line-height: 1; margin-block: .75rem 1.5rem !important;
	background: var(--tm-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm-cta__phone a { color: inherit; text-decoration: none; }

/* ---------- Interior page hero ---------- */
.tm-page-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--wp--preset--gradient--night); color: #C3CDD9;
	padding-block: clamp(3rem, 7vw, 5rem);
	border-bottom: 1px solid rgba(201, 162, 78, .35);
}
.tm-page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
	background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 5px);
}
.tm-page-hero h1 {
	font-style: italic; font-weight: 800; margin: .6rem 0 0;
	background: linear-gradient(180deg, #FFFFFF 0%, #E3E7EB 55%, #A9B1BA 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm-page-body { padding-block: var(--tm-section-y); }

/* ---------- Contact ---------- */
.tm-contact-card {
	background: var(--tm-navy-900); color: #C3CDD9; border-radius: var(--tm-radius);
	padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--tm-shadow);
	border: 1px solid rgba(201, 162, 78, .35);
}
.tm-contact-card h2, .tm-contact-card h3 { color: #fff; }
.tm-contact-line { position: relative; padding-left: 2.4rem; }
.tm-contact-line::before {
	content: ""; position: absolute; left: 0; top: .15rem; width: 1.5rem; height: 1.5rem; background: var(--tm-gold-light);
	-webkit-mask: var(--tm-icon) center / contain no-repeat; mask: var(--tm-icon) center / contain no-repeat;
}
.tm-contact-line a { color: #fff; text-decoration: none; font-weight: 700; }
.tm-contact-line a:hover { color: var(--tm-gold-light); }

/* ---------- Footer ---------- */
.tm-footer { background: var(--tm-navy-950); color: #8F9BAB; font-size: .93rem; padding-block: 4rem 1.5rem; border-top: 3px solid transparent; border-image: var(--tm-gold-grad) 1; }
.tm-footer h2, .tm-footer h3 { color: #fff; font-size: 1.1rem; letter-spacing: .08em; margin-bottom: 1rem; }
.tm-footer a { color: #C3CDD9; text-decoration: none; }
.tm-footer a:hover { color: var(--tm-gold-light); }
.tm-footer .tm-script { font-size: 1.6rem; }
.tm-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.tm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem !important; padding-top: 1.25rem; font-size: .82rem; }

/* ---------- Floating WhatsApp ---------- */
.tm-wa-float {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
	width: 3.6rem; height: 3.6rem; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--tm-wa); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45);
	transition: transform .2s ease;
}
.tm-wa-float:hover { transform: scale(1.08); }
.tm-wa-float::before {
	content: ""; width: 1.9rem; height: 1.9rem; background: #fff;
	-webkit-mask: url(assets/img/icons/whatsapp.svg) center / contain no-repeat; mask: url(assets/img/icons/whatsapp.svg) center / contain no-repeat;
}
.tm-wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Misc ---------- */
[id] { scroll-margin-top: 110px; }
@media (min-width: 782px) {
	.tm-page-body > .tm-split:nth-child(even) { flex-direction: row-reverse; }
}
.tm-page-hero .wp-block-post-excerpt__excerpt { max-width: 40rem; margin-top: 1rem; color: #C3CDD9; }
/* Full-width sections sit flush against each other */
.wp-site-blocks > * { margin-block: 0 !important; }
.wp-block-post-content > .alignfull { margin-block: 0 !important; }
.tm-page-body > :last-child { margin-block-end: 0; }
@media (max-width: 781px) {
	.tm-header .tm-header__cta { display: none !important; }
	.tm-hero__logo { max-width: 220px !important; }
	.tm-header .wp-block-site-logo img { width: 56px !important; }
}
.tm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 1.25rem; }
