/*
Theme Name: Euroalquileres
Description: Tema hijo de Twenty Twenty-Five para euroalquileres.es. Usa las piezas de inmuebles del plugin Property Lula.
Author: SistemasFAMP
Template: twentytwentyfive
Version: 1.0.5
Requires at least: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: euroalquileres
*/

/* ---------- Cabecera ---------- */
.ea-cabecera { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--wp--preset--color--borde); }
.admin-bar .ea-cabecera { top: 32px; }
@media (max-width: 782px) { .admin-bar .ea-cabecera { top: 0; position: relative; } }
.ea-cabecera .wp-block-site-logo img { height: auto; }
.ea-cabecera .wp-block-navigation a { font-weight: 600; }
.ea-cabecera .wp-block-navigation .current-menu-item > a,
.ea-cabecera .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--primario); }
.ea-tel a { white-space: nowrap; }
@media (max-width: 640px) { .ea-tel { display: none !important; } }

/* ---------- Portada ---------- */
.ea-hero { position: relative; overflow: hidden; }
.ea-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40c160-30 320-30 480 0s320 30 480 0 320-30 480 0v30H0z' fill='%23ffffff'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.ea-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
	background:
		radial-gradient(circle at 85% 20%, #fff 0, transparent 28%),
		radial-gradient(circle at 10% 90%, var(--wp--preset--color--acento) 0, transparent 35%);
}
.ea-hero > * { position: relative; z-index: 1; }
.ea-hero .lula-buscador { margin-top: .5rem; }
.ea-ops .wp-block-column { transition: transform .2s ease, box-shadow .2s ease; }
.ea-ops .wp-block-column:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(16 24 40 / .12); }
.ea-ops a { text-decoration: none; }
.ea-ops a::after { content: ""; position: absolute; inset: 0; }
.ea-ops .wp-block-column { position: relative; }

/* ---------- Pie ---------- */
footer.wp-block-template-part { margin-top: 0; }
.ea-pie { --pie-fondo: #062e5c; --pie-suave: #c9d6e6; color: #fff; font-size: .95rem; }
.ea-pie__ola {
	height: 60px; margin-bottom: -1px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c160 28 320 28 480 0s320-28 480 0 320 28 480 0v30H0z' fill='%23062e5c'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
/* En la portada la última franja ya es azul oscuro: el pie continúa sin ola */
.home .ea-pie__ola { display: none; }
.home .ea-pie__dentro { border-top: 1px solid rgb(255 255 255 / .12); }
.ea-pie__dentro {
	background:
		radial-gradient(circle at 90% 0%, rgb(255 255 255 / .07) 0, transparent 35%),
		radial-gradient(circle at 0% 100%, rgb(11 138 46 / .18) 0, transparent 40%),
		var(--pie-fondo);
	padding: clamp(2rem, 5vw, 3.5rem) var(--wp--preset--spacing--40) 1.5rem;
}
.ea-pie__dentro > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.ea-pie p { margin: 0; }
.ea-pie a { color: #fff; text-decoration: none; }
.ea-pie a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ea-pie svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Tarjetas de contacto */
.ea-pie__tarjetas {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem;
	list-style: none; padding: 0 0 clamp(2rem, 4vw, 3rem); margin-top: 0; margin-bottom: 0;
	border-bottom: 1px solid rgb(255 255 255 / .12);
}
.ea-pie__tarjetas li {
	display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem;
	border-radius: 16px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1);
	transition: background .2s ease, transform .2s ease;
}
.ea-pie__tarjetas li:hover { background: rgb(255 255 255 / .1); transform: translateY(-2px); }
.ea-pie__tarjetas p:not(.ea-pie__tit) { color: var(--pie-suave); line-height: 1.6; }
.ea-pie__tarjetas a { color: #fff; font-weight: 600; }
.ea-pie__icono {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
	background: linear-gradient(135deg, #0b8a2e, #07b404); color: #fff; box-shadow: 0 6px 16px rgb(7 180 4 / .25);
}
.ea-pie__tit { font-weight: 800; font-size: 1.05rem; margin-bottom: .3rem !important; color: #fff; }

/* Columnas */
.ea-pie__columnas {
	display: grid; gap: 2rem 3rem; padding: clamp(2rem, 4vw, 3rem) 0;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 781px) { .ea-pie__columnas { grid-template-columns: 1fr 1fr; } .ea-pie__marca { grid-column: 1 / -1; } }
.ea-pie__marca { display: grid; gap: 1.1rem; justify-items: start; }
.ea-pie__marca p { color: var(--pie-suave); line-height: 1.65; max-width: 46ch; }
.ea-pie__logo { display: inline-block; padding: .6rem .9rem; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgb(0 0 0 / .2); }
.ea-pie__logo img { display: block; width: 180px; height: auto; }
.ea-pie__whatsapp {
	display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.2rem; border-radius: 999px;
	background: #128c4b; font-weight: 700;
}
.ea-pie__whatsapp:hover { background: #0e7a40; text-decoration: none !important; }
.ea-pie__enlaces ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ea-pie__enlaces a { color: var(--pie-suave); display: inline-flex; align-items: center; gap: .45rem; }
.ea-pie__enlaces a::before { content: "›"; color: #07b404; font-weight: 800; font-size: 1.15em; line-height: 1; }
.ea-pie__enlaces a:hover { color: #fff; }

/* Barra final */
.ea-pie__final {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / .12); color: var(--pie-suave); font-size: .85rem;
}
.ea-pie__final a { color: var(--pie-suave); }
.ea-pie a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .ea-pie__tarjetas li { transition: none; } .ea-pie__tarjetas li:hover { transform: none; } }

/* ---------- Contenido antiguo de páginas (Contactanos) ---------- */
.entry-content pre.code { display: none; } /* shortcode de Sassy dentro de <pre> */
.entry-content .leaflet-container { border-radius: 14px; }

/* ---------- Formularios de Contact Form 7 ----------
   cf7-customizer mete reglas con #cfc (bordes 0, sin relleno): estas pesan más. */
body .wpcf7 form { display: grid; gap: .25rem; max-width: 640px; }
body .wpcf7 label { display: block; font-weight: 600; }
body :is(#cfc, .wpcf7) form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
body :is(#cfc, .wpcf7) form textarea, body :is(#cfc, .wpcf7) form select {
	display: block; width: 100%; box-sizing: border-box; margin: .35rem 0 0; padding: .7rem .85rem;
	border: 1px solid var(--wp--preset--color--borde); border-radius: 10px; background: #fff; color: var(--wp--preset--color--contrast);
	font: inherit; font-weight: 400;
}
body :is(#cfc, .wpcf7) form textarea { max-height: 12rem; }
body :is(#cfc, .wpcf7) form input:focus, body :is(#cfc, .wpcf7) form textarea:focus { outline: 2px solid var(--wp--preset--color--primario); outline-offset: 1px; }
body :is(#cfc, .wpcf7) form input[type="submit"] {
	width: auto; min-height: 48px; padding: .7rem 2rem; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--wp--preset--color--acento); color: #fff; font: inherit; font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.ea-ops .wp-block-column { transition: none; }
	.ea-ops .wp-block-column:hover { transform: none; }
}
