/* ==========================================================================
   Alócasa – estilos del sitio
   Complementan Kadence (cabecera, pie, páginas legales, artículos) y Elementor
   (páginas principales). Los colores y textos se editan en Elementor; aquí solo
   viven los detalles que los paneles no permiten: fuentes, arcos, fotos y
   tarjetas de Servicios, formulario, tarjetas del blog.
   ========================================================================== */

@font-face {
	font-family: "Quicksand";
	src: url("fonts/quicksand-latin.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("fonts/figtree-latin.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("fonts/figtree-italic-latin.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--alc-mauve: #801843;
	--alc-mauve-deep: #5e1131;
	--alc-yellow: #f1d845;
	--alc-yellow-soft: #f7e47e;
	--alc-rose: #fdf2fd;
	--alc-rose-2: #f7e4f0;
	--alc-ink: #2a1621;
	--alc-text: #4a3540;
	--alc-muted: #6e5865;
	--alc-line: #ead3e1;
	--alc-on-mauve: #fdf2fd;
	--alc-on-mauve-2: #f0d3e3;
	--alc-line-on-mauve: rgba(253, 242, 253, 0.24);
	--alc-radius: 14px;
	--alc-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--alc-arch-off: 16px;
	--alc-display: "Quicksand", "Trebuchet MS", sans-serif;
	--alc-body: "Figtree", "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--alc-yellow); color: var(--alc-mauve); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--alc-mauve); outline-offset: 3px; }
:where(.alc-on-mauve, #masthead, #mobile-drawer, .site-footer, .alc-post-cta, .entry-hero) :focus-visible { outline-color: var(--alc-yellow); }
h1, h2, h3, h4, .elementor-heading-title { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.elementor-widget-text-editor p:last-child, .elementor-widget-text-editor ul:last-child { margin-bottom: 0; }
.alc-hl { color: var(--alc-yellow); }
.alc-measure { max-width: 62ch; }

/* ---------- Header (Kadence) ---------- */
#masthead .header-navigation .header-menu-container > ul > li > a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 10px;
	text-decoration-color: transparent;
	transition: color 0.25s var(--alc-ease), text-decoration-color 0.25s var(--alc-ease);
}
#masthead .header-navigation .header-menu-container > ul > li > a:hover,
#masthead .header-navigation .header-menu-container > ul > li.current-menu-item > a { text-decoration-color: var(--alc-yellow); }
#masthead .header-button,
#mobile-drawer .mobile-header-button { transition: background-color 0.25s var(--alc-ease), color 0.25s var(--alc-ease), transform 0.25s var(--alc-ease); }
#masthead .header-button:hover { transform: translateY(-1px); }
#masthead .item-is-stuck { box-shadow: 0 12px 28px -20px rgba(42, 22, 33, 0.65); }
#mobile-drawer .drawer-inner { font-family: var(--alc-display); }
#mobile-drawer .mobile-header-button-wrap { margin-top: 24px; }
/* Menu toggles: keep them quiet (Elementor's global button style must not reach them). */
#masthead .menu-toggle-open,
#mobile-drawer .menu-toggle-close {
	min-width: 44px;
	min-height: 44px;
	padding: 8px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--alc-rose) !important;
}
#masthead .menu-toggle-open:hover,
#mobile-drawer .menu-toggle-close:hover { color: var(--alc-yellow) !important; }
#masthead .menu-toggle-open .menu-toggle-icon svg { width: 28px; height: 28px; }

/* ---------- Buttons (Elementor) ---------- */
.elementor-button { transition: background-color 0.25s var(--alc-ease), color 0.25s var(--alc-ease), border-color 0.25s var(--alc-ease), transform 0.25s var(--alc-ease); }
.elementor-button:hover { transform: translateY(-1px); }

/* ---------- Commitments strip (hero) ---------- */
.alc-commitments { border-top: 1px solid var(--alc-line-on-mauve); padding-top: 28px; }
.alc-commitments .elementor-icon-list-items { justify-content: space-between; row-gap: 14px; }
@media (max-width: 1024px) {
	.alc-commitments .elementor-icon-list-items { justify-content: flex-start; column-gap: 36px; }
}
@media (max-width: 767px) {
	.alc-commitments .elementor-icon-list-items { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
	.alc-commitments .elementor-icon-list-items .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; align-items: flex-start; }
}

/* ---------- Arches: photographs framed like Madrid's porticoes ---------- */
.elementor-widget.alc-arch { position: relative; }
.alc-arch img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 999px 999px var(--alc-radius) var(--alc-radius);
}
.alc-arch--square img { aspect-ratio: 1 / 1; }
.alc-arch--outline::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset: calc(var(--alc-arch-off) * -1) var(--alc-arch-off) var(--alc-arch-off) calc(var(--alc-arch-off) * -1);
	border: 1.5px solid var(--alc-yellow);
	border-radius: 999px 999px var(--alc-radius) var(--alc-radius);
	pointer-events: none;
}
.alc-arch--outline-mauve::before { border-color: rgba(128, 24, 67, 0.4); }
@media (max-width: 767px) { :root { --alc-arch-off: 10px; } }
@media (prefers-reduced-motion: no-preference) {
	.alc-hero-arch img { animation: alc-arch-rise 1.3s var(--alc-ease) both; }
	.alc-hero-arch::before { animation: alc-arch-trace 1.6s var(--alc-ease) 0.3s both; }
}
@keyframes alc-arch-rise {
	from { clip-path: inset(24% 0 0 0 round 999px 999px 14px 14px); transform: translateY(20px); }
	to { clip-path: inset(0 0 0 0 round 999px 999px 14px 14px); transform: none; }
}
@keyframes alc-arch-trace {
	from { inset: 0; opacity: 0; }
	to { inset: calc(var(--alc-arch-off) * -1) var(--alc-arch-off) var(--alc-arch-off) calc(var(--alc-arch-off) * -1); opacity: 1; }
}
.alc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--alc-radius); }

/* ---------- Pills (rental models, blog categories, page index) ---------- */
.alc-tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.alc-tags li { margin: 0; }
.alc-tags a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1.5px solid var(--alc-line);
	border-radius: 999px;
	background: #fff;
	color: var(--alc-mauve);
	font-family: var(--alc-display);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.25s var(--alc-ease), border-color 0.25s var(--alc-ease), color 0.25s var(--alc-ease);
}
.alc-tags a:hover { background: var(--alc-mauve); border-color: var(--alc-mauve); color: var(--alc-rose); }
.alc-tags--on-mauve a { background: transparent; border-color: var(--alc-line-on-mauve); color: var(--alc-rose); }
.alc-tags--on-mauve a:hover { background: var(--alc-yellow); border-color: var(--alc-yellow); color: var(--alc-mauve); }

/* ---------- Service photos (Servicios): rounded rectangles sized by the text beside them ---------- */
/* The photo column (class alc-media) stretches to the height of the text column and the photo fills it,
   never flatter than 3:2 nor taller than 4:5 (centred when the text is longer). Stacked on mobile, it stays 3:2. */
.elementor .e-con.alc-media { position: relative; align-self: stretch; aspect-ratio: 3 / 2; container-type: inline-size; }
/* Selector heavier than Elementor's ".e-con .elementor-widget.elementor-widget { margin-block-end: 0 }", which would pin the photo to the bottom. */
.e-con.alc-media > .elementor-widget.elementor-widget-image { position: absolute; inset: 0; margin: auto 0; max-height: 125cqw; }
.alc-media > .elementor-widget-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--alc-radius); }

/* ---------- Rental models (Servicios 02): photo cards after the client's reference ---------- */
/* Grid container .alc-modes, one container .alc-mode per model with five widgets: photo, H3, description,
   "A tener en cuenta" text, button. Each card spans five rows of a subgrid, so the titles, texts and buttons of
   neighbouring cards line up. A card whose widgets were added or removed in Elementor keeps a plain column. */
.elementor .e-con.alc-modes { grid-template-rows: none; grid-auto-rows: auto; }
.elementor .e-con.alc-mode { grid-row: span 5; }
.elementor .e-con.alc-mode:has(> :nth-child(5 of .elementor-element)):not(:has(> :nth-child(6 of .elementor-element))) { display: grid; grid-template-rows: subgrid; }
.e-con.alc-mode > .elementor-widget:not(.elementor-widget-image) { padding-inline: 26px; }
.e-con.alc-mode > .elementor-widget.elementor-widget-heading { position: relative; padding-top: 12px; }
.e-con.alc-mode .elementor-widget-text-editor p { margin: 0; }
.e-con.alc-mode > .elementor-widget.alc-mode__key { padding-top: 10px; }
.e-con.alc-mode > .elementor-widget.alc-mode__cta { margin-top: auto; padding-top: 10px; }
.e-con.alc-mode > .elementor-widget-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 1024px) { .e-con.alc-mode > .elementor-widget-image img { aspect-ratio: 16 / 9; } }
@media (max-width: 767px) { .e-con.alc-mode > .elementor-widget:not(.elementor-widget-image) { padding-inline: 22px; } }
/* A qualifier inside the title (<span class="alc-mode__meta">, e.g. "1 a 11 meses") shows as a tag on the photo,
   12 px above its bottom edge (24 px = the 12 px row gap + the inset), so every title row keeps a single line. */
.alc-mode__meta {
	position: absolute;
	left: 14px;
	bottom: calc(100% + 24px);
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--alc-rose);
	color: var(--alc-mauve);
	font-family: var(--alc-display);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	white-space: nowrap;
}
.alc-mode__key strong { display: inline-block; margin-bottom: 2px; font-family: var(--alc-display); font-size: 15px; font-weight: 700; color: var(--alc-mauve); }
.alc-mode--dark .alc-mode__key strong { color: var(--alc-yellow); }
/* Arrow after the button label, drawn in the icon set's line style (Quicksand has no arrow glyph). */
.alc-mode__cta .elementor-button-content-wrapper { align-items: center; }
.alc-mode__cta .elementor-button-content-wrapper::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-left: 4px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.25s var(--alc-ease);
}
.alc-mode__cta .elementor-button:hover .elementor-button-content-wrapper::after { transform: translateX(3px); }

/* ---------- Definition list (Financiación) ---------- */
.alc-dl { margin: 0; }
.alc-dl > div { padding: 20px 0; border-top: 1px solid var(--alc-line); }
.alc-dl > div:last-child { border-bottom: 1px solid var(--alc-line); }
.alc-dl dt { margin: 0 0 6px; font-family: var(--alc-display); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--alc-ink); }
.alc-dl dd { margin: 0; color: var(--alc-text); }

/* ---------- Testimonials ---------- */
.alc-quote { margin: 0; padding: 0; border: 0; }
.alc-quote p { margin: 0; font-family: var(--alc-display); font-weight: 500; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.45; color: var(--alc-ink); }
.alc-quote footer { margin-top: 20px; font-size: 15px; color: var(--alc-muted); }

/* ---------- Blog grid ---------- */
.alc-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
@media (max-width: 1024px) { .alc-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .alc-posts { grid-template-columns: 1fr; gap: 40px; } }
.alc-card { display: flex; flex-direction: column; }
.alc-card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--alc-radius); background: var(--alc-rose-2); }
.alc-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--alc-ease); }
.alc-card:hover .alc-card__media img { transform: scale(1.035); }
.alc-card__title { margin: 20px 0 8px; font-family: var(--alc-display); font-weight: 600; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.alc-card__title a { color: var(--alc-ink); text-decoration: none; }
.alc-card__title a:hover { color: var(--alc-mauve); }
.alc-card__meta { margin: 0 0 12px; font-size: 14px; color: var(--alc-muted); }
.alc-card__excerpt { margin: 0 0 18px; color: var(--alc-text); }
.alc-card__more { margin-top: auto; align-self: flex-start; font-family: var(--alc-display); font-weight: 700; color: var(--alc-mauve); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(128, 24, 67, 0.3); }
.alc-card__more:hover { text-decoration-color: var(--alc-mauve); }
.alc-empty { font-size: 18px; color: var(--alc-muted); }
.alc-pagination { margin-top: 56px; display: flex; gap: 8px; flex-wrap: wrap; }
.alc-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--alc-line); color: var(--alc-mauve); font-family: var(--alc-display); font-weight: 700; text-decoration: none; }
.alc-pagination .page-numbers.current { background: var(--alc-mauve); border-color: var(--alc-mauve); color: var(--alc-rose); }

/* ---------- End-of-article call to action ---------- */
.alc-post-cta { margin: 56px 0 8px; padding: 36px clamp(24px, 4vw, 44px); border-radius: var(--alc-radius); background: var(--alc-mauve); color: var(--alc-on-mauve-2); }
.alc-post-cta p { margin: 0 0 22px; }
.alc-post-cta .alc-post-cta__title { margin: 0 0 10px; font-family: var(--alc-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; color: var(--alc-on-mauve); }
.alc-post-cta__btn { display: inline-flex; align-items: center; min-height: 52px; padding: 16px 30px; border-radius: 999px; background: var(--alc-yellow); color: var(--alc-mauve) !important; font-family: var(--alc-display); font-weight: 700; text-decoration: none !important; transition: background-color 0.25s var(--alc-ease), transform 0.25s var(--alc-ease); }
.alc-post-cta__btn:hover { background: var(--alc-yellow-soft); transform: translateY(-1px); }

/* ---------- Contact form (Contact Form 7) ---------- */
.alc-form { display: grid; gap: 22px; }
.alc-form p { margin: 0; }
.alc-form .alc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 767px) { .alc-form .alc-row { grid-template-columns: 1fr; } }
.alc-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.alc-field > label,
.alc-field > legend,
.alc-field .alc-label { display: block; margin: 0 0 8px; padding: 0; font-family: var(--alc-display); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--alc-ink); }
.alc-req { color: var(--alc-mauve); }
.alc-form .wpcf7-form-control-wrap { display: block; }
.alc-form input[type="text"],
.alc-form input[type="email"],
.alc-form input[type="tel"],
.alc-form select,
.alc-form textarea {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 14px 16px;
	border: 1.5px solid var(--alc-line);
	border-radius: 12px;
	background-color: #fff;
	color: var(--alc-ink);
	font: 400 16px/1.4 var(--alc-body);
	box-shadow: none;
	transition: border-color 0.2s var(--alc-ease), box-shadow 0.2s var(--alc-ease);
}
.alc-form textarea { min-height: 150px; resize: vertical; }
.alc-form input::placeholder, .alc-form textarea::placeholder { color: var(--alc-muted); opacity: 1; }
.alc-form input:focus, .alc-form select:focus, .alc-form textarea:focus { outline: none; border-color: var(--alc-mauve); box-shadow: 0 0 0 3px rgba(128, 24, 67, 0.16); }
/* Select: custom chevron, never flush against the edge. */
.alc-form select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23801843' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px 16px;
	cursor: pointer;
}
.alc-form select::-ms-expand { display: none; }
/* Choice chips (checkbox / radio) */
.alc-form .wpcf7-checkbox, .alc-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.alc-form .wpcf7-list-item { margin: 0; }
.alc-form .wpcf7-checkbox label, .alc-form .wpcf7-radio label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 16px;
	border: 1.5px solid var(--alc-line);
	border-radius: 999px;
	background: #fff;
	color: var(--alc-text);
	font-size: 15px;
	line-height: 1.25;
	cursor: pointer;
	transition: border-color 0.2s var(--alc-ease), background-color 0.2s var(--alc-ease), color 0.2s var(--alc-ease);
}
.alc-form .wpcf7-checkbox label:hover, .alc-form .wpcf7-radio label:hover { border-color: rgba(128, 24, 67, 0.45); }
.alc-form .wpcf7-list-item input {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	display: grid;
	place-content: center;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1.5px solid var(--alc-muted);
	border-radius: 5px;
	background: #fff;
}
.alc-form .wpcf7-radio .wpcf7-list-item input { border-radius: 50%; }
.alc-form .wpcf7-list-item input:checked { border-color: var(--alc-mauve); background: var(--alc-mauve); }
.alc-form .wpcf7-list-item input:checked::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.alc-form .wpcf7-radio .wpcf7-list-item input:checked::after { width: 8px; height: 8px; margin: 0; border: 0; border-radius: 50%; background: #fff; transform: none; }
.alc-form .wpcf7-list-item input:focus-visible { outline: 2px solid var(--alc-mauve); outline-offset: 2px; }
.alc-form .wpcf7-checkbox label:has(input:checked), .alc-form .wpcf7-radio label:has(input:checked) { border-color: var(--alc-mauve); background: var(--alc-rose); color: var(--alc-mauve); }
.alc-consent .wpcf7-list-item label { display: inline-flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--alc-text); cursor: pointer; }
.alc-consent .wpcf7-list-item input { margin-top: 2px; }
.alc-consent a { color: var(--alc-mauve); }
.alc-form input[type="submit"] {
	-webkit-appearance: none;
	appearance: none;
	min-height: 54px;
	padding: 17px 34px;
	border: 0;
	border-radius: 999px;
	background: var(--alc-mauve);
	color: var(--alc-rose);
	font: 700 16px/1.2 var(--alc-display);
	cursor: pointer;
	transition: background-color 0.25s var(--alc-ease), transform 0.25s var(--alc-ease);
}
.alc-form input[type="submit"]:hover { background: var(--alc-mauve-deep); transform: translateY(-1px); }
.alc-form input[type="submit"]:disabled { opacity: 0.6; cursor: progress; transform: none; }
.alc-form .wpcf7-spinner { margin: 0 0 0 14px; vertical-align: middle; }
.alc-form .wpcf7-not-valid { border-color: #b3261e !important; }
.alc-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; color: #b3261e; }
.wpcf7 form .wpcf7-response-output { margin: 22px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2e7d32; background: #eef7ef; color: #1b5e20; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: #b3261e; background: #fdeceb; color: #8c1d18; }
.alc-legal-note { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--alc-muted); }
.alc-legal-note p, .alc-legal-note ul { margin: 0 0 6px; }
.alc-legal-note ul { padding-left: 18px; }
.alc-legal-note a { color: var(--alc-mauve); }

/* ---------- Kadence title banners (legal pages, articles, categories) ---------- */
.entry-hero .entry-header { padding-top: 24px; padding-bottom: 24px; }
.entry-hero .entry-title { letter-spacing: -0.02em; }
.entry-hero .entry-meta, .entry-hero .entry-meta a, .entry-hero .entry-taxonomies a, .entry-hero .archive-description { color: var(--alc-on-mauve-2); }
.entry-hero .entry-taxonomies a { font-family: var(--alc-display); font-weight: 700; }
.entry-hero .entry-taxonomies a:hover, .entry-hero .entry-meta a:hover { color: var(--alc-yellow); }

/* ---------- Long-form content (legal pages, articles) ---------- */
.single-content { font-size: 18px; line-height: 1.7; }
.single-content > * { max-width: 70ch; }
.single-content h2 { margin: 2.2em 0 0.6em; font-size: clamp(25px, 2.6vw, 30px); line-height: 1.2; color: var(--alc-ink); }
.single-content h3 { margin: 1.8em 0 0.5em; font-size: 21px; line-height: 1.3; color: var(--alc-ink); }
.single-content a { color: var(--alc-mauve); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.single-content table { width: 100%; max-width: none; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.single-content th { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1.5px solid var(--alc-mauve); font-family: var(--alc-display); font-weight: 700; color: var(--alc-mauve); }
.single-content td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--alc-line); vertical-align: top; }
.single-content .wp-block-table { overflow-x: auto; margin: 1.5em 0; }
/* WordPress table blocks draw borders on every side: keep only the horizontal rules of the design. */
.single-content .wp-block-table thead { border-bottom: 0; }
.single-content .wp-block-table th, .single-content .wp-block-table td { border-width: 0 0 1px; border-style: solid; border-color: var(--alc-line); }
.single-content .wp-block-table th { border-bottom: 1.5px solid var(--alc-mauve); }
.single-post .post-thumbnail img, .single-post .article-post-thumbnail img { border-radius: var(--alc-radius); }

/* ---------- Footer (Kadence) ---------- */
.site-footer { font-size: 15px; line-height: 1.6; color: var(--alc-on-mauve-2); }
.site-footer .widget-title { margin: 0 0 16px; font-family: var(--alc-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--alc-yellow); }
.site-footer a { color: var(--alc-on-mauve); text-decoration: none; transition: color 0.2s var(--alc-ease); }
.site-footer a:hover { color: var(--alc-yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.alc-footer-brand img { display: block; width: 180px; height: auto; }
.alc-footer-tagline { max-width: 32ch; margin: 18px 0 22px; color: var(--alc-on-mauve-2); }
.alc-social { display: flex; gap: 10px; }
.alc-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--alc-line-on-mauve); border-radius: 50%; transition: border-color 0.2s var(--alc-ease), background-color 0.2s var(--alc-ease); }
.alc-social a:hover { border-color: var(--alc-yellow); background: rgba(241, 216, 69, 0.08); }
.alc-social svg { width: 20px; height: 20px; }
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { border-top: 1px solid var(--alc-line-on-mauve); }
.site-footer .footer-html { font-size: 14px; color: var(--alc-on-mauve-2); }
.alc-cookie-link { padding: 0; border: 0; background: none; color: var(--alc-on-mauve); font: inherit; cursor: pointer; }
.alc-cookie-link:hover { color: var(--alc-yellow); }

/* ---------- Cookie notice (GDPR Cookie Compliance) ---------- */
#moove_gdpr_cookie_info_bar, #moove_gdpr_cookie_modal { font-family: var(--alc-body) !important; }
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content p { font-size: 14px !important; line-height: 1.55 !important; }
#moove_gdpr_cookie_info_bar .mgbutton { font-family: var(--alc-display) !important; font-weight: 700 !important; border-radius: 999px !important; }

/* ---------- Team: [alocasa_equipo] (members edited in wp-admin > Equipo) ---------- */
/* Horizontal cards, two per row; an odd last card spans the whole row, so the grid never leaves a hole. */
.alc-team {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
	gap: 56px 48px;
}
.alc-member {
	margin: 0;
	padding-top: 40px;
	border-top: 1px solid var(--alc-line);
	display: grid;
	grid-template-columns: clamp(150px, 15vw, 196px) minmax(0, 1fr);
	grid-template-areas: "photo name" "photo role" "photo bio";
	grid-template-rows: auto auto 1fr;
	column-gap: 32px;
	align-content: start;
}
.alc-member:nth-child(odd):last-child:not(:first-child) { grid-column: 1 / -1; }
/* No presentation text yet: centre the name and role beside the portrait. */
.alc-member--short { grid-template-areas: "photo ." "photo name" "photo role" "photo ."; grid-template-rows: 1fr auto auto 1fr; }
/* Exactly three people: three columns of vertical cards on wide screens. */
@media (min-width: 1025px) {
	.alc-team--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.alc-team--3 .alc-member,
	.alc-team--3 .alc-member--short { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "name" "role" "bio"; grid-template-rows: auto; }
	.alc-team--3 .alc-member__photo { width: min(100%, 220px); margin-bottom: 18px; }
	.alc-team--3 .alc-member:nth-child(odd):last-child:not(:first-child) { grid-column: auto; }
}
.alc-member__photo { grid-area: photo; position: relative; align-self: start; margin: 0; }
.alc-member__initials {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 999px 999px var(--alc-radius) var(--alc-radius);
	background: var(--alc-rose-2);
	color: var(--alc-mauve);
	font-family: var(--alc-display);
	font-size: clamp(44px, 4.5vw, 64px);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1;
}
.alc-member__name { grid-area: name; margin: 10px 0 4px; font-family: var(--alc-display); font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.2px; color: var(--alc-ink); }
.alc-member__role { grid-area: role; margin: 0; font-family: var(--alc-display); font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--alc-mauve); }
.alc-member__bio { grid-area: bio; max-width: 62ch; margin-top: 14px; font-family: var(--alc-body); font-size: 16px; line-height: 1.65; color: var(--alc-text); }
.alc-member__bio p { margin: 0 0 0.8em; }
.alc-member__bio p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
	.alc-team { gap: 40px; }
	/* Compact card: small portrait beside the name and role, presentation underneath. */
	.alc-member {
		padding-top: 28px;
		grid-template-columns: 104px minmax(0, 1fr);
		grid-template-areas: "photo name" "photo role" "bio bio";
		grid-template-rows: auto auto auto;
		column-gap: 20px;
	}
	.alc-member__name { align-self: end; margin: 0 0 4px; font-size: 22px; }
	.alc-member__role { align-self: start; }
	.alc-member__bio { margin-top: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}
