/*
Theme Name:        Andalasia Magazine — Elementor Responsive Theme
Theme URI:         https://andalasia.com/
Author:            Arquitectura Editorial Senior
Author URI:        https://andalasia.com/
Description:       Tema 100% compatible con Elementor y Elementor Theme Builder (estándar Hello Elementor) en binomio con `revista-core`. Soporta cabeceras, pies, plantillas y contenedores Flexbox/Grid totalmente responsivos en Escritorio, Tablet y Móvil sin interferir con ninguna opción de Elementor.
Requires at least: 6.2
Tested up to:      6.7
Requires PHP:      7.4
Version:           2.4.1
License:           GPL-2.0-or-later
Text Domain:       revista-theme
*/

/* ==========================================================================
   Reset Neutro y Responsivo Estándar para Elementor (Base Hello Elementor)
   Garantiza box-sizing correcto, cero desbordes horizontales en móvil/tablet
   y compatibilidad total con Contenedores Flexbox/Grid y Cabeceras Elementor.
   ========================================================================== */

html {
	box-sizing: border-box;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img,
svg,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

img {
	border-style: none;
}

/* Protección contra desborde dentro de Contenedores Flexbox/Grid de Elementor en Tablet y Móvil */
.e-con,
.e-con-inner,
.elementor-widget-container,
.elementor-shortcode {
	min-width: 0;
	max-width: 100%;
}

/* Clases estándar de accesibilidad de WordPress */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.alignwide,
.alignfull {
	max-width: 100%;
}

/* Clases utilitarias de visibilidad por dispositivo (útiles incluso en Elementor V4 Elementos Atómicos) */
@media (min-width: 1025px) {
	.ocultar-escritorio,
	.solo-tablet,
	.solo-movil {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.ocultar-tablet,
	.solo-escritorio,
	.solo-movil {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.ocultar-movil,
	.solo-escritorio,
	.solo-tablet {
		display: none !important;
	}
}

/* ==========================================================================
   Cabecera de Respaldo Limpia y Responsiva (solo visible si NO hay
   Cabecera de Elementor Theme Builder ni HFE activa)
   ========================================================================== */
.andalasia-fallback-header {
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid #e8dfd1;
	position: relative;
	z-index: 50;
}

.andalasia-fallback-header__topbar {
	background: var(--am-navy, #043365);
	color: #f8fafc;
	font-size: 0.8rem;
	padding: 6px 0;
}

.andalasia-fallback-header__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.andalasia-fallback-header__tagline {
	opacity: 0.85;
}

.andalasia-fallback-header__main {
	padding: 12px 0;
	background: #ffffff;
}

.andalasia-fallback-header__row {
	flex-wrap: wrap;
}

.andalasia-fallback-header__brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.andalasia-fallback-header__logo-link,
.andalasia-fallback-header__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.andalasia-fallback-header__logo-img,
.andalasia-fallback-header__brand .custom-logo {
	max-height: 68px;
	width: auto;
	display: block;
}

.andalasia-fallback-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 8px;
	border: 1px solid #d5dbe3;
	border-radius: 6px;
	background: #ffffff;
	cursor: pointer;
}

.andalasia-fallback-header__toggle span:not(.screen-reader-text) {
	display: block;
	width: 100%;
	height: 2.5px;
	background: var(--am-navy, #043365);
	border-radius: 2px;
}

.andalasia-fallback-header__nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.andalasia-fallback-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
}

.andalasia-fallback-header__menu > li {
	position: relative;
}

.andalasia-fallback-header__menu a {
	display: inline-block;
	padding: 6px 2px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--am-navy, #043365);
	text-decoration: none;
	transition: color 0.15s ease;
}

.andalasia-fallback-header__menu a:hover {
	color: var(--am-gold, #D99420);
}

.andalasia-fallback-header__menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	background: #ffffff;
	border: 1px solid #e8dfd1;
	border-radius: 8px;
	box-shadow: 0 12px 26px rgba(4, 51, 101, 0.12);
	z-index: 100;
}

.andalasia-fallback-header__menu li:hover > .sub-menu,
.andalasia-fallback-header__menu li:focus-within > .sub-menu {
	display: block;
}

.andalasia-fallback-header__menu .sub-menu a {
	display: block;
	padding: 7px 14px;
	font-size: 0.85rem;
	font-weight: 600;
}

@media (max-width: 960px) {
	.andalasia-fallback-header__tagline {
		display: none;
	}

	.andalasia-fallback-header__toggle {
		display: inline-flex;
	}

	.andalasia-fallback-header__nav {
		display: none;
		flex-basis: 100%;
		justify-content: flex-start;
		padding-top: 12px;
		border-top: 1px solid #e8dfd1;
		margin-top: 10px;
	}

	.andalasia-fallback-header__nav.is-open {
		display: block;
	}

	.andalasia-fallback-header__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.andalasia-fallback-header__menu .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
		border: 0;
		padding-left: 14px;
	}
}
