/*
Theme Name: Almudena Vilar
Theme URI: https://almuvilaroxigen.com
Description: Tema hijo de Twenty Twenty-Five para Almudena Vilar by oxigen. Negro, gris de marca y toques dorados.
Author: Nexia IA
Template: twentytwentyfive
Version: 1.0.6
Requires at least: 6.7
Text Domain: almudena-vilar
*/

/* ---------- Detalles de marca (60 negro / 30 gris / 10 dorado) ---------- */
html { scroll-behavior: smooth; }

/* Palabras destacadas: dorado sobre negro, subrayado dorado sobre gris */
.hl { color: var(--wp--preset--color--dorado); }
.has-gris-background-color .hl,
.hl-u {
	color: inherit;
	background-image: linear-gradient(var(--wp--preset--color--dorado), var(--wp--preset--color--dorado));
	background-repeat: no-repeat;
	background-size: 100% 2px;
	background-position: 0 100%;
	padding-bottom: 3px;
}

/* Antetítulos con filete dorado */
.av-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px !important;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--dorado);
	margin-bottom: 0;
}
.av-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--wp--preset--color--dorado); flex: none; }
.has-gris-background-color .av-eyebrow { color: var(--wp--preset--color--negro); }
.has-gris-background-color .av-eyebrow::before { background: var(--wp--preset--color--negro); }

/* Texto secundario */
.av-muted { color: #D9D7D2; }
.has-gris-background-color .av-muted { color: #16181C; }

/* Secciones contiguas del mismo color */
.has-negro-background-color + .has-negro-background-color { border-top: 1px solid #23272D; }

/* Cabecera fija */
.av-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #23272D; }
.av-header .wp-block-navigation { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.av-header .wp-block-navigation__container { flex-wrap: nowrap; gap: 22px; }
.av-header .wp-block-navigation-item__content { white-space: nowrap; }
.av-header-cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 1100px) { .av-header-cta { display: none !important; } }
.av-header .wp-block-navigation a:hover { color: var(--wp--preset--color--dorado) !important; }
.av-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--negro) !important;
	border: 1px solid #23272D !important;
	border-top: 2px solid var(--wp--preset--color--dorado) !important;
	min-width: 320px !important;
	text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400;
	padding: 8px 0;
}
.av-header .wp-block-navigation__submenu-container a { padding: 10px 20px !important; }
/* Tercer nivel: se abre a la derecha, pegado al desplegable */
.av-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	left: 100% !important; right: auto !important; top: -10px !important; min-width: 300px !important;
}
.av-btn-outline .wp-block-button__link {
	background: transparent !important;
	border: 1px solid var(--wp--preset--color--dorado) !important;
	color: var(--wp--preset--color--dorado) !important;
}
.av-btn-outline .wp-block-button__link:hover { background: var(--wp--preset--color--dorado) !important; color: var(--wp--preset--color--negro) !important; }
.av-btn-blanco .wp-block-button__link { background: transparent !important; border: 1px solid #fff !important; color: #fff !important; }
.av-btn-blanco .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--negro) !important; }

/* Imagen provisional */
.av-ph {
	display: flex; align-items: center; justify-content: center; text-align: center;
	padding: 24px; background: #1C1F24; border: 1px solid #2E3238; color: #A9A7A2; font-size: 13px;
}
.has-gris-background-color .av-ph { background: #9A9997; border: 0; color: var(--wp--preset--color--negro); }
.av-r45 { aspect-ratio: 4/5; } .av-r43 { aspect-ratio: 4/3; } .av-r11 { aspect-ratio: 1/1; } .av-r32 { aspect-ratio: 3/2; } .av-r169 { aspect-ratio: 16/9; }

/* Tarjetas con brillo dorado al pasar el cursor */
.av-card {
	background: #11151B; border: 1px solid #23272D;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.has-gris-background-color .av-card { background: transparent; border: 0; border-top: 2px solid var(--wp--preset--color--dorado); }
.av-card:hover, .av-card:focus-within {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--dorado);
	box-shadow: 0 0 0 1px var(--wp--preset--color--dorado), 0 14px 36px rgba(202,176,54,.30);
}
.has-negro-background-color .av-card:hover h3 { color: var(--wp--preset--color--dorado); }
.av-card a { text-decoration: none; }
.av-more { font-size: 13px !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--wp--preset--color--dorado); }
.has-gris-background-color .av-more { color: var(--wp--preset--color--negro); }
.av-num { font-family: var(--wp--preset--font-family--michroma); font-size: 14px !important; color: var(--wp--preset--color--dorado); }
.has-gris-background-color .av-num { color: var(--wp--preset--color--negro); }
.av-stars { color: var(--wp--preset--color--dorado); letter-spacing: 4px; }

/* Barra de confianza */
.av-trust p { font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: #D9D7D2; margin: 0; }

/* Preguntas frecuentes (bloque Detalles) */
.av-faq details { border-bottom: 1px solid rgba(5,9,14,.3); padding: 20px 0; }
.av-faq summary { font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.av-faq summary::-webkit-details-marker { display: none; }
.av-faq summary::after { content: "+"; font-size: 22px; line-height: 1; }
.av-faq details[open] summary::after { content: "−"; }
.av-faq details[open] summary { background-image: linear-gradient(var(--wp--preset--color--dorado), var(--wp--preset--color--dorado)); background-repeat: no-repeat; background-size: 40px 2px; background-position: 0 100%; padding-bottom: 10px; }
.av-faq details p { margin-top: 12px; color: #16181C; }

/* Horario */
.av-hours { border: 1px solid #2E3238; padding: 32px; transition: box-shadow .3s ease, border-color .3s ease; }
.av-hours:hover { border-color: var(--wp--preset--color--dorado); box-shadow: 0 0 0 1px var(--wp--preset--color--dorado), 0 0 40px rgba(202,176,54,.25); }
.av-hours table { width: 100%; border-collapse: collapse; }
.av-hours td { border: 0 !important; border-bottom: 1px solid #23272D !important; padding: 10px 0 !important; color: #D9D7D2; }
.av-hours td:last-child { text-align: right; color: #fff; }

/* Vídeo */
.av-video video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #05090E; border: 1px solid #2E3238; }

/* WhatsApp flotante */
.av-wa {
	position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 50%;
	background: var(--wp--preset--color--dorado); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 30px rgba(5,9,14,.35); z-index: 60;
}

@media (prefers-reduced-motion: reduce) {
	.av-card, .av-hours { transition: none; }
	.av-card:hover { transform: none; }
}
@media (max-width: 781px) {
	.av-header-cta { display: none !important; }
}

/* Retrato de la portada */
.av-hero-foto img { width: 100%; height: auto; display: block; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.av-hero-foto { position: relative; margin: 0; isolation: isolate; }
.av-hero-foto::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--wp--preset--color--dorado); z-index: -1; }

/* Huecos de foto pendientes: monograma AV en lugar del texto [FOTO] */
.av-ph {
	font-size: 0 !important; color: transparent !important;
	background: #11151B url(assets/img/monograma-AV-dorado.svg) center / 28% no-repeat !important;
	border: 1px solid #23272D;
}
.has-gris-background-color .av-ph {
	background: #9A9997 url(assets/img/monograma-AV-negro.svg) center / 28% no-repeat !important;
}
