/*
Theme Name: Hacienda Lagunilla
Description: Tema hijo de Twenty Twenty-Five para el sitio corporativo de Hacienda Lagunilla. Paleta P1 «Océano y arena», tipografías Fraunces/Inter. Ver docs/diseno.md y docs/decisiones/ADR-004.
Author: lfernan
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hacienda-lagunilla
*/

/* Badge de estado de proyecto (entrega inmediata / programada) */
.hl-badge {
	display: inline-block;
	padding: 0.2em 0.75em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--accent-5);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Tarjeta de proyecto */
.hl-card {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(22, 50, 74, 0.08);
}

/* Fila de proyecto en portada (SPEC-010): la foto va primero en el DOM para que
   en móvil quede arriba; en escritorio esta clase invierte el orden
   (texto a la izquierda, foto a la derecha). 782px = breakpoint de columnas de WP. */
@media (min-width: 782px) {
	.hl-fila-invertida {
		flex-direction: row-reverse;
	}
}

/* Hero de portada (SPEC-010): el bloque Cubierta solo admite opacidades de 10 en 10;
   el usuario pidió 15 % para la capa amarillo arena. El color sigue viniendo del atributo
   overlayColor (accent-3); aquí solo se ajusta la opacidad. */
.hl-hero > .wp-block-cover__background {
	opacity: 0.15;
}

/* Botón flotante de WhatsApp (SPEC-011, ADR-008). Vive en parts/footer.html como bloque HTML. */
.hl-whatsapp {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-5);
	box-shadow: 0 4px 16px rgba(22, 50, 74, 0.25);
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.hl-whatsapp:hover,
.hl-whatsapp:focus-visible {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
	transform: scale(1.06);
}

.hl-whatsapp svg {
	width: 1.75rem;
	height: 1.75rem;
	fill: currentColor;
}
