/* =========================================================================
   Door Refinishing RX — hoja de estilos principal
   Marca: rojo #E30613, azul #304193, gris #9D9D9C, tipografia Work Sans.
   ========================================================================= */

/* --- Tokens ------------------------------------------------------------- */
:root {
	--red:        #e30613;
	--red-dark:   #9d030c;
	--red-tint:   #f8e7e8;
	--navy:       #304193;
	--navy-dark:  #23306e;
	--navy-tint:  #e7e9f7;
	--gray:       #9d9d9c;
	--ink:        #16192b;
	--ink-soft:   #4a4f66;
	--line:       #e4e6ef;
	--paper:      #ffffff;
	--paper-alt:  #f6f7fb;

	--wrap:       1180px;
	--radius:     14px;
	--radius-sm:  8px;
	--shadow:     0 2px 4px rgba(22,25,43,.04), 0 12px 32px rgba(22,25,43,.08);
	--shadow-lg:  0 8px 20px rgba(22,25,43,.08), 0 32px 64px rgba(22,25,43,.14);

	--font:       'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--step:       clamp(1rem, .92rem + .4vw, 1.125rem);
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--step);
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
p  { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--intro { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.section__title { text-align: center; margin-bottom: .35em; }
.section__title--left { text-align: left; }
.section__intro {
	text-align: center; max-width: 62ch; margin: 0 auto 2.5rem;
	color: var(--ink-soft); font-size: 1.05em;
}
.section__title--left + p { text-align: left; margin-left: 0; }
.section__more { text-align: center; margin: 2.5rem 0 0; }

/* --- Botones ------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.6em;
	font: inherit; font-weight: 600; line-height: 1.2;
	border: 2px solid transparent; border-radius: 100px;
	text-decoration: none; cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; }

.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn--call { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(227,6,19,.28); }
.btn--call:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn__icon { display: inline-flex; }

.btn--ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--ghost.btn--dark { color: var(--navy); }
.btn--ghost.btn--dark:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.btn--text { padding-inline: 0; color: var(--navy); font-weight: 600; background: transparent; border-color: transparent; }
.btn--text:hover { color: var(--red); }

/* --- Cabecera ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .75rem 0; }
.brand img { width: clamp(150px, 18vw, 215px); height: auto; }

.nav-toggle {
	display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--navy);
}
.nav-toggle__bars { display: block; width: 26px; }
.nav-toggle__bars i {
	display: block; height: 2.5px; background: currentColor; border-radius: 2px;
	margin: 5px 0; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav .menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block; padding: .55rem .7rem; border-radius: var(--radius-sm);
	font-size: .88rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
	color: var(--ink); text-decoration: none;
}
.primary-nav .menu a:hover { color: var(--red); background: var(--red-tint); }
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a,
.primary-nav .menu .current-menu-ancestor > a { color: var(--red); }

/* Desplegable de servicios: cuatro columnas con encabezado, generadas del
   catalogo. Catorce servicios en lista seguida no se leen. */
.primary-nav .has-mega { position: relative; }
.mega {
	position: absolute; top: calc(100% + .4rem); left: 50%; z-index: 20;
	display: grid; grid-template-columns: repeat(4, minmax(148px, 1fr));
	gap: 0 1.5rem;
	width: max-content; max-width: min(78vw, 800px);
	padding: 1.4rem 1.6rem;
	background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden;
	transform: translateX(-50%) translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.primary-nav .has-mega:hover > .mega,
.primary-nav .has-mega:focus-within > .mega {
	opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega__title {
	display: block; padding: 0 .45rem .5rem;
	font-size: .71rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--gray); border-bottom: 1px solid var(--line); margin-bottom: .4rem;
}
.mega__list { list-style: none; margin: 0; padding: 0; }
.primary-nav .mega__list a {
	display: block; padding: .42rem .45rem; border-radius: var(--radius-sm);
	font-size: .92rem; font-weight: 500;
	text-transform: none; letter-spacing: 0;
	color: var(--ink); text-decoration: none; white-space: nowrap;
}
.primary-nav .mega__list a:hover { color: var(--red); background: var(--red-tint); }
.primary-nav .mega__list .is-current > a { color: var(--red); font-weight: 600; }

@media (max-width: 1200px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1rem;
		padding: 5.5rem 1.5rem 2rem; background: #fff; box-shadow: var(--shadow-lg);
		transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
	}
	.primary-nav.is-open { transform: none; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu a { padding: .8rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.mega {
		position: static; opacity: 1; visibility: visible; transform: none;
		display: block; width: auto; max-width: none;
		border: 0; box-shadow: none; padding: 0 0 0 .8rem;
	}
	.mega__col + .mega__col { margin-top: .9rem; }
	.mega__title { padding: .5rem .6rem .3rem; border-bottom: 0; margin-bottom: 0; }
	.mega__list a { padding: .7rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	body.nav-open { overflow: hidden; }
	body.nav-open::after {
		content: ''; position: fixed; inset: 0; z-index: 99; background: rgba(22,25,43,.45);
	}
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate;
	min-height: clamp(320px, 42vw, 460px); padding: clamp(3rem, 7vw, 5rem) 0; background: var(--navy-tint); }
.hero--tall { min-height: clamp(460px, 74vh, 720px); }

.hero__bg, .hero__video {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; object-fit: cover;
}
.hero__video { z-index: -1; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.62); }

.hero__inner { position: relative; text-align: center; }
.hero__title { color: var(--navy); margin-bottom: .3em; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.hero__subtitle { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: 600; color: var(--red); margin-bottom: .5em; }
.hero__lead { max-width: 60ch; margin: 0 auto 1.75rem; color: var(--ink); font-size: 1.08em; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.hero .btn--ghost { color: var(--navy); border-color: var(--navy); }
.hero .btn--ghost:hover { background: var(--navy); color: #fff; }

@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* --- Franja de confianza ------------------------------------------------ */
.section--trust { padding: 0; }
.trust {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1px; background: var(--line);
	border: 1px solid var(--line); border-radius: var(--radius);
	margin-top: -2.5rem; position: relative; z-index: 2; overflow: hidden; box-shadow: var(--shadow);
}
.trust__item { background: #fff; padding: 1.5rem 1rem; text-align: center; }
.trust__num { display: block; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.85rem); font-weight: 800; color: var(--navy); line-height: 1.1; }
.trust__label { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }

/* --- Rejilla de servicios ----------------------------------------------- */
.section--services { background: var(--paper-alt); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

.service-card {
	display: flex; flex-direction: column; height: 100%;
	padding: 1.75rem 1.5rem; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; color: inherit;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.service-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }

.service-card__icon { display: block; width: 56px; height: 56px; margin-bottom: 1rem; color: var(--red); }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__icon svg path,
.service-card__icon svg polygon,
.service-card__icon svg rect,
.service-card__icon svg circle { fill: currentColor; }

.service-card__label { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.service-card__excerpt { font-size: .93rem; color: var(--ink-soft); flex: 1; }
.service-card__more { margin-top: 1rem; font-size: .88rem; font-weight: 700; color: var(--red); display: inline-flex; gap: .35em; }
.service-card__more i { font-style: normal; transition: transform .18s ease; }
.service-card:hover .service-card__more i { transform: translateX(3px); }

.services__item.is-current .service-card { border-color: var(--navy); background: var(--navy-tint); }

/* --- Bloque texto + imagen ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.section--split-reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.split__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
@media (max-width: 820px) {
	.split { grid-template-columns: 1fr; }
	.section--split-reverse .split__media { order: 0; }
}

/* --- Texto largo -------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose--article { max-width: 68ch; }
.prose p { color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); margin: 2rem 0; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.25rem; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
	margin: 2rem 0; padding: 1rem 0 1rem 1.5rem;
	border-left: 4px solid var(--red); font-size: 1.1em; color: var(--ink);
}
.prose__outro { font-weight: 600; color: var(--ink); }
.prose__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.checklist { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2rem; margin: 0; }
.checklist li::before {
	content: ''; position: absolute; left: 0; top: .35em;
	width: 20px; height: 20px; border-radius: 50%; background: var(--red-tint);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e30613' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
	background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.checklist strong { display: block; color: var(--ink); }
.checklist span { color: var(--ink-soft); font-size: .95em; }

/* --- Pasos del proceso -------------------------------------------------- */
.section--steps { background: var(--paper-alt); padding-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.steps__item {
	display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
	background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
	border-radius: var(--radius); padding: 1.75rem;
}
.steps__num { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 800; color: var(--navy-tint); line-height: 1; }
.steps__label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .25rem; }
.steps__title { margin-bottom: .5rem; }
.steps__body p { color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .steps__item { grid-template-columns: 1fr; gap: .5rem; } }

/* --- Galeria ------------------------------------------------------------ */
.section--gallery { background: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gallery__item {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--paper-alt);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__zoom {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(48,65,147,.55); color: #fff; opacity: 0; transition: opacity .2s ease;
}
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; }

/* lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
	background: rgba(10,12,24,.92); padding: 1.5rem;
	opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(92vw, 1200px); max-height: 82vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__caption { color: #fff; text-align: center; margin-top: 1rem; font-size: .9rem; opacity: .8; }
.lightbox__btn {
	position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff;
	width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1;
	display: grid; place-items: center; transition: background-color .18s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* --- CTA ---------------------------------------------------------------- */
.section--cta { background: var(--navy); color: #fff; }
.cta { text-align: center; }
.cta__title { color: #fff; margin-bottom: .3em; }
.cta__phone { margin: 0 0 .4em; }
.cta__phone a {
	color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.02em;
	font-size: clamp(1.9rem, 1.3rem + 3vw, 3.2rem);
}
.cta__phone a:hover { color: #fff; text-decoration: underline; }
.cta__note { color: rgba(255,255,255,.75); margin: 0; }

/* --- Blog --------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }

.post-card { margin: 0; }
.post-card__link {
	display: flex; flex-direction: column; height: 100%;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; text-decoration: none; color: inherit;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.post-card__link:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-alt); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card__link:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem; }
.post-card__date { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.post-card__title { font-size: 1.12rem; margin: .45rem 0 .55rem; color: var(--navy); }
.post-card__excerpt { font-size: .93rem; color: var(--ink-soft); flex: 1; }
.post-card__more { margin-top: 1rem; font-size: .88rem; font-weight: 700; color: var(--red); display: inline-flex; gap: .35em; }
.post-card__more i { font-style: normal; transition: transform .18s ease; }
.post-card__link:hover .post-card__more i { transform: translateX(3px); }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .85rem;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	text-decoration: none; font-weight: 600; color: var(--ink);
}
.pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* --- Entrada individual ------------------------------------------------- */
.single__header { background: var(--navy-tint); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.single__header-inner { max-width: 72ch; }
.single__crumbs { font-size: .85rem; color: var(--ink-soft); display: flex; gap: .5rem; margin-bottom: .75rem; }
.single__crumbs a { text-decoration: none; font-weight: 600; }
.single__title { margin-bottom: .4em; }
.single__meta { display: flex; gap: .6rem; font-size: .88rem; color: var(--ink-soft); margin: 0; }

.single__hero { margin: 0; }
.single__hero img { width: 100%; max-height: 460px; object-fit: cover; }

.single .prose { padding-block: clamp(2.5rem, 5vw, 4rem); }

.single__footer { background: var(--paper-alt); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.single__cta {
	background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
	border-radius: var(--radius); padding: 2rem;
}
.single__cta h2 { margin-bottom: .3em; }
.single__cta p { color: var(--ink-soft); }
.single__cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav__link {
	display: block; padding: 1.25rem; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.post-nav__link:hover { border-color: var(--red); }
.post-nav__link--next { text-align: right; }
.post-nav__dir { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: .35rem; }
.post-nav__title { color: var(--ink); font-weight: 600; font-size: .95rem; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { text-align: left; } }

/* --- Reviews ------------------------------------------------------------ */
.review-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; }
.review-link {
	display: inline-flex; align-items: center; gap: .65rem;
	padding: .75rem 1.4rem; background: #fff;
	border: 1px solid var(--line); border-radius: 100px;
	text-decoration: none; font-weight: 600; color: var(--ink);
}
.review-link:hover { border-color: var(--red); color: var(--red); }
.reviews-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.reviews-embed iframe { width: 100%; height: 1000px; border: 0; display: block; }

/* --- Formulario --------------------------------------------------------- */
.section--contact { background: var(--paper-alt); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

.contact__intro p { color: var(--ink-soft); }
.contact__facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact__fact-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.contact__fact-value { font-weight: 600; color: var(--navy); text-decoration: none; }
a.contact__fact-value:hover { color: var(--red); }

.contact__form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__row { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.form__row--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.form label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.form label span { color: var(--red); }
.form input, .form select, .form textarea {
	width: 100%; padding: .8rem .95rem;
	font: inherit; font-size: .95rem; color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	transition: border-color .16s ease, box-shadow .16s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
	outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint);
}
.form .has-error { border-color: var(--red); background: var(--red-tint); }
.form textarea { resize: vertical; min-height: 130px; }
.form__err { font-size: .82rem; color: var(--red-dark); font-weight: 600; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__small { font-size: .88rem; color: var(--ink-soft); }

.notice { padding: 1rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: .95rem; }
.notice--ok  { background: var(--navy-tint); border-left: 4px solid var(--navy); color: var(--navy-dark); }
.notice--err { background: var(--red-tint);  border-left: 4px solid var(--red);  color: var(--red-dark); }

.searchform { display: flex; gap: .6rem; max-width: 460px; margin-top: 1.5rem; }
.searchform input {
	flex: 1; padding: .75rem 1rem; font: inherit; font-size: .95rem;
	border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.searchform input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }

/* --- Pie ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid {
	display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
	gap: clamp(1.75rem, 4vw, 3rem); padding-bottom: 3rem;
}
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__logo { width: 210px; margin-bottom: 1.25rem; }
.footer__blurb { font-size: .93rem; margin-bottom: 1.5rem; }
.footer__title { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__title--social { margin-top: 1.75rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__list a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .93rem; }
.footer__list a:hover { color: #fff; }
.footer__list--contact a { display: inline-flex; align-items: center; gap: .55rem; }

.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social__link {
	display: grid; place-items: center; width: 38px; height: 38px;
	border-radius: 50%; background: rgba(255,255,255,.1);
	background-repeat: no-repeat; background-position: center; background-size: 17px;
	transition: background-color .18s ease;
}
.social__link:hover { background-color: var(--red); }
.social__link--facebook  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M22 12a10 10 0 10-11.6 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.4v7A10 10 0 0022 12z'/%3E%3C/svg%3E"); }
.social__link--instagram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='white' stroke='none'/%3E%3C/svg%3E"); }
.social__link--twitter   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18.2 2H21l-6.6 7.5L22 22h-6.2l-4.8-6.3L5.4 22H2.6l7-8L2 2h6.3l4.4 5.8L18.2 2zm-1 18.3h1.6L7.9 3.6H6.2l10.9 16.7z'/%3E%3C/svg%3E"); }
.social__link--linkedin  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4.98 3.5a2.5 2.5 0 11-.02 5 2.5 2.5 0 01.02-5zM3 9h4v12H3zM9 9h3.8v1.7h.05c.53-1 1.83-2.05 3.76-2.05C20.6 8.65 21 11 21 14.2V21h-4v-6c0-1.4-.03-3.3-2-3.3s-2.3 1.55-2.3 3.2V21H9z'/%3E%3C/svg%3E"); }
.social__link--pinterest { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 00-3.6 19.3c-.1-.8-.2-2 0-2.9l1.2-5s-.3-.6-.3-1.5c0-1.4.8-2.5 1.8-2.5.9 0 1.3.6 1.3 1.4 0 .9-.6 2.2-.9 3.4-.2 1 .5 1.9 1.5 1.9 1.9 0 3.2-2.4 3.2-5.2 0-2.1-1.5-3.7-4-3.7-2.9 0-4.7 2.2-4.7 4.6 0 .8.3 1.4.7 1.9.1.2.2.3.1.5l-.2.8c0 .3-.2.4-.5.2-1.2-.5-1.8-2-1.8-3.6 0-2.7 2.2-5.9 6.7-5.9 3.6 0 5.9 2.6 5.9 5.3 0 3.7-2 6.4-5 6.4-1 0-2-.5-2.3-1.2l-.6 2.4c-.2.8-.7 1.7-1.1 2.3A10 10 0 1012 2z'/%3E%3C/svg%3E"); }
.social__link--youtube   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M23 12s0-3.4-.4-5c-.3-.9-1-1.6-1.9-1.9C19 4.7 12 4.7 12 4.7s-7 0-8.7.4c-.9.3-1.6 1-1.9 1.9C1 8.6 1 12 1 12s0 3.4.4 5c.3.9 1 1.6 1.9 1.9 1.7.4 8.7.4 8.7.4s7 0 8.7-.4c.9-.3 1.6-1 1.9-1.9.4-1.6.4-5 .4-5zM9.8 15.3V8.7l5.7 3.3-5.7 3.3z'/%3E%3C/svg%3E"); }

.footer__bar { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; font-size: .85rem; }
.footer__bar-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer__bar p { margin: 0; }
.footer__bar a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer__bar a:hover { color: #fff; }

/* --- Boton flotante de llamada (movil) ---------------------------------- */
.call-fab {
	position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .85rem 1.3rem; border-radius: 100px;
	background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
	box-shadow: 0 8px 24px rgba(227,6,19,.4);
}
.call-fab:hover { background: var(--red-dark); color: #fff; }

/* Se muestra en todos los tamanos: al quitar la barra azul, este boton es el
   unico sitio donde el telefono esta siempre a la vista. En escritorio cabe
   el numero completo; en movil solo "Call" para no comerse la pantalla. */
.call-fab__short { display: none; }
.site-footer { padding-bottom: 5rem; }

@media (max-width: 780px) {
	.call-fab { padding: .8rem 1.2rem; }
	.call-fab__short { display: inline; }
	.call-fab__full { display: none; }
}

/* --- Impresion ---------------------------------------------------------- */
@media print {
	.site-header, .site-footer, .call-fab, .section--cta, .section--contact, .hero__video { display: none !important; }
	body { color: #000; }
}

/* --- Menu ampliado ------------------------------------------------------
   Al quitar la barra azul y el boton de llamada del menu quedo sitio libre,
   asi que la navegacion vuelve a un tamano comodo de leer.
   ------------------------------------------------------------------------ */
.navbar { padding: 1rem 0; }

/* El logo no debe comprimirse para dejar sitio al menu. */
.brand { flex: 0 0 auto; }
.brand img { width: clamp(175px, 15vw, 205px); }

.primary-nav .menu a {
	font-size: 1rem;
	letter-spacing: .02em;
	padding: .6rem .55rem;
	white-space: nowrap;
}

/* El submenu no necesita ser tan grande como el menu principal. */
.primary-nav .mega__list a { font-size: .95rem; }

/* En el cajon movil, texto comodo para el dedo. */
@media (max-width: 1200px) {
	.primary-nav .menu a { font-size: 1.05rem; padding: .9rem .6rem; }
	.primary-nav .mega__list a { font-size: .98rem; }
}

/* --- Iconos de servicio mas grandes ------------------------------------- */
.service-card { padding: 2rem 1.6rem; }
.service-card__icon { width: 88px; height: 88px; margin-bottom: 1.15rem; }
.service-card__icon img { width: 88px; height: 88px; object-fit: contain; }
.service-card__label { font-size: 1.2rem; }

@media (max-width: 520px) {
	.service-card__icon,
	.service-card__icon img { width: 76px; height: 76px; }
}

/* Contenedor de los feeds de resenas (WP Social Ninja). */
.reviews-feeds { margin-top: 1rem; }
.reviews-feeds > * + * { margin-top: 2.5rem; }

/* --- Migas de pan ------------------------------------------------------- */
.crumbs { background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.crumbs__list {
	display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
	list-style: none; margin: 0; padding: .8rem 0; font-size: .85rem;
}
.crumbs__item { display: inline-flex; align-items: center; gap: .4rem; }
.crumbs__item a { color: var(--ink-soft); text-decoration: none; }
.crumbs__item a:hover { color: var(--red); text-decoration: underline; }
.crumbs__item [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs__sep { color: var(--gray); }

/* --- Cobertura ---------------------------------------------------------- */
.section--areas { background: var(--paper-alt); }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.areas__group {
	background: #fff; border: 1px solid var(--line);
	border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 1.25rem 1.4rem;
}
.areas__county {
	font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--red); margin-bottom: .5rem;
}
.areas__towns { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* --- reCAPTCHA ----------------------------------------------------------
   La insignia de Google se fija abajo a la derecha, justo encima del boton
   flotante de llamada. Se oculta y en su lugar se muestra el aviso legal
   dentro del formulario, que es lo que Google exige a cambio.
   ---------------------------------------------------------------------- */
.grecaptcha-badge { visibility: hidden; }

.form__legal {
	grid-column: 1 / -1;
	margin: 0; font-size: .78rem; line-height: 1.5; color: var(--gray);
}
.form__legal a { color: var(--ink-soft); }
.form__legal a:hover { color: var(--red); }

/* --- Invitacion a instalar la app ---------------------------------------
   Una pastilla flotante abajo, y una ficha con los pasos al tocarla.
   Solo en telefonos: en escritorio no hay pantalla de inicio que llenar.
   ---------------------------------------------------------------------- */
.pwa-pill {
	position: fixed; z-index: 900;
	/* Por encima del boton flotante de llamar, que ocupa la esquina inferior
	   derecha. Van apilados, no uno sobre otro. */
	left: 50%; bottom: calc(82px + env(safe-area-inset-bottom));
	transform: translate(-50%, 160%);
	display: flex; align-items: center; gap: .55rem;
	max-width: calc(100vw - 2rem);
	padding: .6rem .7rem .6rem .6rem;
	border: 0; border-radius: 999px;
	background: var(--navy); color: #fff;
	font-family: inherit; font-size: .92rem; font-weight: 600; line-height: 1;
	box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55), 0 0 0 2px var(--red);
	cursor: pointer;
	transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.pwa-pill[hidden] { display: none !important; }
.pwa-pill.is-in { transform: translate(-50%, 0); }

.pwa-pill__icon {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
	background: #fff; display: grid; place-items: center; overflow: hidden;
}
.pwa-pill__icon img { width: 24px; height: 24px; object-fit: contain; }
.pwa-pill__label { white-space: nowrap; }
.pwa-pill__x {
	flex: 0 0 auto; display: grid; place-items: center;
	width: 24px; height: 24px; margin-left: .15rem;
	border-radius: 50%; background: rgba(255, 255, 255, .16);
	font-size: 1.05rem; line-height: 1;
}

/* --- Ficha con los pasos --- */
.pwa-modal {
	position: fixed; inset: 0; z-index: 950;
	display: flex; align-items: flex-end; justify-content: center;
	padding: 1rem; background: rgba(12, 18, 34, .62);
	opacity: 0; transition: opacity .3s ease;
}
.pwa-modal[hidden] { display: none !important; }
.pwa-modal.is-open { opacity: 1; }

.pwa-modal__card {
	position: relative; width: min(430px, 100%);
	padding: 1.6rem 1.4rem 1.3rem; text-align: center;
	background: #fff; border-radius: 20px;
	box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .6);
	transform: translateY(20px); transition: transform .3s ease;
	max-height: 85vh; overflow-y: auto;
}
.pwa-modal.is-open .pwa-modal__card { transform: none; }
.pwa-modal__card::before {
	content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
	background: linear-gradient(90deg, var(--red), var(--navy));
	border-radius: 20px 20px 0 0;
}
.pwa-modal__close {
	position: absolute; top: .5rem; right: .6rem;
	width: 34px; height: 34px; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: transparent;
	font-size: 1.5rem; line-height: 1; color: var(--gray); cursor: pointer;
}
.pwa-modal__close:hover { background: var(--paper-alt); color: var(--ink); }
.pwa-modal__logo {
	width: 72px; height: 72px; border-radius: 16px; display: block;
	margin: 0 auto .7rem; border: 1px solid var(--line);
}
.pwa-modal__title { font-size: 1.2rem; margin: 0 0 .3rem; color: var(--navy); }
.pwa-modal__lead { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-soft); }
.pwa-modal__note { margin: .9rem 0 0; font-size: .8rem; color: var(--gray); }

.pwa-steps { list-style: none; margin: 0; padding: 0; text-align: left; }
.pwa-steps li {
	display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
	padding: .7rem .8rem; margin-bottom: .5rem;
	border: 1px solid var(--line); border-radius: 12px;
	font-size: .9rem; line-height: 1.4;
}
.pwa-steps__n {
	flex: 0 0 auto; display: grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--red); color: #fff; font-size: .8rem; font-weight: 700;
}
.pwa-steps__share {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; vertical-align: -6px; margin: 0 .1em;
	border-radius: 6px; background: var(--navy-tint); color: var(--navy);
}

/* Solo se enseña el juego de pasos que corresponde al dispositivo. */
.pwa-steps, .pwa-modal__otro { display: none; }
.pwa-modal.is-ios .pwa-steps--ios { display: block; }
.pwa-modal.is-android .pwa-steps--android { display: block; }
.pwa-modal.is-otro .pwa-modal__otro { display: block; margin: 0; font-size: .9rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
	.pwa-pill, .pwa-modal, .pwa-modal__card { transition: none; }
}

/* En escritorio no tiene sentido: no hay pantalla de inicio. */
@media (min-width: 900px) {
	.pwa-pill.is-in { transform: translate(-50%, 0); }
}

/* Nota: el boton de llamar va ANTES que la pastilla en el DOM, asi que no se
   le puede alcanzar con un selector de hermano. Por eso la pastilla se coloca
   mas arriba desde el principio, en vez de intentar apartar al boton. */

/* --- Pagina de zonas de servicio ---------------------------------------- */
.section--areas-full { background: var(--paper-alt); }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

.area-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.5rem 1.4rem;
}
.area-card__name { font-size: 1.08rem; color: var(--navy); margin-bottom: .2rem; }
.area-card__count {
	font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--gray); margin: 0 0 1rem;
}
.area-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.area-card__list li {
	position: relative; padding-left: 1.1rem; font-size: .93rem; color: var(--ink-soft);
}
.area-card__list li::before {
	content: ''; position: absolute; left: 0; top: .58em;
	width: 5px; height: 5px; border-radius: 50%; background: var(--red);
}

/* --- Ancho de la cabecera ------------------------------------------------
   Con nueve apartados el menu necesita 1.215 px y el contenedor general mide
   1.180. Se ensancha SOLO la cabecera; el resto del sitio mantiene su medida
   de lectura, que no debe crecer.
   ------------------------------------------------------------------------ */
.site-header .wrap { width: min(100% - 2.5rem, 1280px); }

/* --- Banner del servicio destacado ---------------------------------------
   Va en navy para separarse de la rejilla de servicios que tiene encima y
   leerse como "esto es distinto", no como otra seccion mas de contenido.
   ------------------------------------------------------------------------ */
.section--featured { background: var(--navy); color: rgba(255,255,255,.82); }

.featured {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

.featured__media img {
	width: 100%; border-radius: var(--radius);
	aspect-ratio: 4 / 5; object-fit: cover;
	box-shadow: var(--shadow-lg);
}

.featured__kicker {
	margin: 0 0 .6rem;
	font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: #ff8b91;
}
.featured__title { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.15rem); margin-bottom: .5rem; }
.featured__lead { color: #fff; font-size: 1.08em; font-weight: 500; margin-bottom: 1rem; }
.featured__text { color: rgba(255,255,255,.78); }

.featured__points { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .7rem; }
.featured__points li {
	position: relative; padding-left: 1.6rem;
	font-size: .93rem; color: rgba(255,255,255,.78);
}
.featured__points li::before {
	content: ''; position: absolute; left: 0; top: .5em;
	width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}
.featured__points strong { color: #fff; font-weight: 600; }

.featured__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0 0; }
.section--featured .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.section--featured .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
