/*
Theme Name: Anaura
Description: Tema de bloques a medida para Anaura. Paleta y tipografías según la propuesta visual de la marca.
Author: Cactus Marketing
Version: 0.2.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: anaura
License: GNU General Public License v2 or later
*/

/* ---------- Textura muy sutil de papel/arena en el fondo ---------- */
:root { --anaura-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .26 0 0 0 0 .24 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body, .has-background:not(.anaura-hueco-foto) { background-image: var(--anaura-grano); }

::selection { background: var(--wp--preset--color--rosa); color: var(--wp--preset--color--marron); }

a { text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--wp--preset--color--malva); }
a:hover { text-decoration-color: currentColor; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--malva); outline-offset: 3px; }

h1, h2, h3 { text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: manual; }
p { text-wrap: pretty; }

/* ---------- Logotipo (SVG vectorizado del original) ---------- */
.anaura-logo-img { display: block; line-height: 0; }
.anaura-logo-img img { display: block; width: 210px; height: auto; }
.anaura-footer .anaura-logo-img img { width: 190px; }
@media (max-width: 781px) { .anaura-header .anaura-logo-img img { width: 150px; } }

/* ---------- Cabecera ---------- */
.anaura-header { border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--arena) 70%, transparent); }
.anaura-header .wp-block-navigation a { text-decoration: none; }
.anaura-header .wp-block-navigation a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--malva); }
.anaura-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--marfil) !important; padding: 2rem clamp(1.25rem, 5vw, 3rem); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.1rem; font-family: var(--wp--preset--font-family--bentham); font-size: 1.75rem; }

/* ---------- Etiquetas pequeñas en mayúsculas ---------- */
.is-style-etiqueta {
	font-size: var(--wp--preset--font-size--xs) !important;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--taupe-texto);
	font-weight: 500;
}
.has-arena-background-color .is-style-etiqueta, .has-rosa-background-color .is-style-etiqueta { color: var(--wp--preset--color--marron); }

/* ---------- Botón secundario: solo texto subrayado ---------- */
.wp-block-button.is-style-enlace .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--marron) !important;
	padding: .95rem 0;
	border-bottom: 1px solid var(--wp--preset--color--malva);
}
.wp-block-button.is-style-enlace .wp-block-button__link:hover { border-bottom-color: var(--wp--preset--color--marron); }
.wp-block-button.is-style-enlace .wp-block-button__link::after { content: " →"; }

/* ---------- Formas: arco para fotos y huecos de imagen ---------- */
.is-style-arco, .is-style-arco img { border-radius: 999px 999px 0 0 !important; overflow: hidden; }
.anaura-hueco-foto {
	position: relative;
	aspect-ratio: 4 / 5;
	background-color: var(--wp--preset--color--arena-clara);
	background-image: url("assets/img/ramita.svg");
	background-repeat: no-repeat;
	background-position: 50% 62%;
	background-size: auto 58%;
}
.anaura-hueco-foto.is-style-arco { aspect-ratio: 3 / 4; }
.anaura-hueco-foto.has-rosa-background-color { background-color: var(--wp--preset--color--rosa); }
.anaura-hueco-foto > * { position: absolute; left: 0; right: 0; bottom: 1.25rem; text-align: center; margin: 0; }

/* ---------- Lista de servicios numerada ---------- */
.anaura-servicios { border-top: 1px solid var(--wp--preset--color--arena); }
.anaura-servicio { border-bottom: 1px solid var(--wp--preset--color--arena); padding-block: clamp(1.75rem, 3.5vw, 2.5rem); }
.anaura-num { font-family: var(--wp--preset--font-family--bentham); color: var(--wp--preset--color--malva-oscuro); font-size: var(--wp--preset--font-size--l); margin: 0; }
.anaura-servicio h3 { margin: 0; }
.anaura-servicio p { margin: 0; color: var(--wp--preset--color--taupe-texto); }
@media (max-width: 781px) {
	.anaura-servicio .wp-block-columns { gap: .5rem !important; }
}

/* ---------- Detalles ---------- */
.anaura-linea { width: 56px; height: 1px; background: var(--wp--preset--color--malva); border: 0; margin-left: 0 !important; }
.has-text-align-center .anaura-linea, .anaura-linea.aligncenter { margin-left: auto !important; }
.anaura-texto-secundario, .anaura-texto-secundario p { color: var(--wp--preset--color--taupe-texto); }
.anaura-datos p { margin: 0; }
.anaura-datos strong { font-weight: 500; }

/* Pie */
.anaura-footer a { text-decoration: none; }
.anaura-footer a:hover { text-decoration: underline; }
.anaura-footer .anaura-footer-legal a { color: var(--wp--preset--color--taupe-texto); }

/* ---------- Widget de reservas y equipo (plugin ANAURA Reservas) ---------- */
.anr-team, .anr-app {
	--anr-ink: var(--wp--preset--color--marron);
	--anr-muted: var(--wp--preset--color--taupe-texto);
	--anr-accent: var(--wp--preset--color--marron);
	--anr-accent-ink: var(--wp--preset--color--marfil);
	--anr-soft: var(--wp--preset--color--arena-clara);
	--anr-radius: 2px;
}
.anr-app {
	--anr-line: var(--wp--preset--color--arena);
	--anr-off: #b9ab9c;
	--anr-off-bg: #efe8e0;
}
.anr-member-name, .anr-app h2, .anr-app h3 { font-family: var(--wp--preset--font-family--bentham); font-weight: 400; }
.anr-member-photo { border-radius: 999px 999px 0 0 !important; }
.anr-member-initial { font-family: var(--wp--preset--font-family--bentham); color: var(--wp--preset--color--malva) !important; opacity: .6 !important; }
.anr-button { border-radius: 0 !important; font-weight: 500 !important; letter-spacing: .04em; }
.anr-button:hover { filter: none !important; background: var(--wp--preset--color--malva-oscuro) !important; }

@media (prefers-reduced-motion: no-preference) {
	.wp-block-button__link, .anr-button { transition: background-color .2s ease, color .2s ease; }
}

/* ---------- Ajustes finos ---------- */
h1 a, h2 a, h3 a, h4 a { text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--malva); }
@media (max-width: 781px) {
	.anaura-hueco-foto { aspect-ratio: 4 / 3; }
	.anaura-hueco-foto.is-style-arco { aspect-ratio: 1 / 1; width: 78%; margin-inline: auto; }
}

/* ---------- Páginas interiores ---------- */
.anaura-frase { font-family: var(--wp--preset--font-family--bentham); line-height: 1.3; color: var(--wp--preset--color--malva-oscuro); margin-top: 2rem !important; }
.anaura-lista { list-style: none; padding: 0; margin-top: .75rem; border-top: 1px solid var(--wp--preset--color--arena); }
.anaura-lista li { padding: .6rem 0; border-bottom: 1px solid var(--wp--preset--color--arena); }
.anaura-dato { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--wp--preset--color--arena); }
.anaura-dato:last-child { border-bottom: 0; }
.anaura-dato p { margin: 0; }
.anaura-dato p:not(.is-style-etiqueta) { font-family: var(--wp--preset--font-family--bentham); font-size: var(--wp--preset--font-size--l); }

/* Secciones pegadas unas a otras, sin huecos entre bandas de color */
.wp-site-blocks > * + *, .wp-block-post-content > .alignfull, .wp-block-post-content > .alignfull + * { margin-block-start: 0 !important; }
.wp-block-post-content > .alignfull { margin-block-end: 0 !important; }
.anaura-intro > * { max-width: 46rem; }
.anaura-lista { margin-bottom: 0; }
p.is-style-etiqueta + .anaura-lista { margin-top: .75rem; }
.wp-block-column > p + p.is-style-etiqueta { margin-top: 2rem; }

/* Widget de reservas integrado con el tema */
.anr-app { max-width: 1180px; }
.anr-app .anr-cal { background: var(--wp--preset--color--blanco); border-radius: 2px; }
.anr-app .anr-service, .anr-app .anr-person, .anr-app .anr-time { background: var(--wp--preset--color--blanco); border-radius: 2px; }
.anr-app .anr-service-name { font-family: var(--wp--preset--font-family--bentham); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.anr-app .anr-service-meta { color: var(--wp--preset--color--malva-oscuro); font-weight: 500; }
.anr-app .anr-service:hover, .anr-app .anr-person:hover { border-color: var(--wp--preset--color--malva); }
.anr-app .anr-day-open { font-weight: 500; }
.anr-app .anr-time { font-weight: 500; }

/* Portada: el widget de reservas bajo la introducción de su sección */
#cita .anr-app { margin-top: var(--wp--preset--spacing--40) !important; scroll-margin-top: 1rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Fotos */
.wp-block-image img { display: block; width: 100%; }
@media (max-width: 781px) {
	.wp-block-image.is-style-arco { width: 78%; margin-inline: auto; }
	.wp-block-image.is-style-arco img { aspect-ratio: 1 / 1 !important; object-position: 50% 80%; }
}

/* Mapa de contacto: Google Maps interactivo */
.anaura-mapa { aspect-ratio: 4 / 5; background: var(--wp--preset--color--arena-clara); }
.anaura-mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.anaura-mapa-acciones { margin-top: 1rem; }
.anaura-mapa-btn { display: inline-block; text-decoration: none; background: var(--wp--preset--color--marron); color: var(--wp--preset--color--marfil) !important; padding: .85rem 1.5rem; font: 500 var(--wp--preset--font-size--s)/1.2 var(--wp--preset--font-family--dm-sans); letter-spacing: .04em; }
.anaura-mapa-btn:hover { background: var(--wp--preset--color--malva-oscuro); }
@media (max-width: 781px) { .anaura-mapa { aspect-ratio: 1 / 1; } }
