/* DERPE v3.4 p160 front-pasion360 · Lo común de la plantilla sobre las hojas originales: textos en mayúsculas por estilo (en el CRM se escriben normales),
   iconos SVG, selector de idioma, vuelta a la portada, foco visible, secciones añadidas desde el CRM y menos movimiento si se pide. Se carga la última. */

/* ── Mayúsculas por estilo: en el CRM los títulos se escriben en mayúscula y minúscula ───────────────────────────────── */
.brand, .footer-brand, .door-title, .nav-brand, .hero-title, .hero-sub, .feat-title, .city-name, .lm-info-title, .lm-label, .fp-tag,
.cities-label, .city-tagline, .live-badge, .download-title em, .footer-tagline, .nav-brand .sub { text-transform: uppercase; }
.tema-semanasanta .footer-tagline { letter-spacing: 2px; }

/* ── Iconos (palabra clave del pie del texto) ──────────────────────────────────────────────────────────────────────── */
.p360-icono { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat-icon, .city-emoji { color: var(--gold); line-height: 1; }
.tema-patiosycruces .feat-icon, .tema-patiosycruces .city-emoji { color: var(--burgundy); }
.feat-icon .p360-icono { width: 40px; height: 40px; }
.city-emoji .p360-icono { width: 40px; height: 40px; }
.city-pill .p360-icono, .door-pill .p360-icono { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.tema-semanasanta .city-pill .p360-icono { color: var(--gold); }
.tema-patiosycruces .city-pill .p360-icono { color: var(--burgundy); }
.door.ss .door-pill .p360-icono { color: var(--gold-ss); }
.door.pyc .door-pill .p360-icono { color: var(--hot-pink); }
.door-mood { line-height: 1; }
.door-mood .p360-icono { width: 1em; height: 1em; stroke-width: 1; }

/* ── Destacado del titular de la descarga (<em> en el CRM) ─────────────────────────────────────────────────────────── */
.download-title em { font-style: normal; }
.tema-semanasanta .download-title em { color: var(--gold); }
.tema-patiosycruces .download-title em { background: linear-gradient(135deg, var(--burgundy), var(--hot-pink) 50%, var(--gold-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-num small { font-size: 0.55em; }

/* ── Barra superior de las landings: vuelta a la portada y lema bajo la marca (también en la Semana Santa) ───────── */
nav { gap: 16px; }
.nav-izquierda { display: flex; align-items: center; gap: 28px; min-width: 0; }
.tema-semanasanta .nav-back { font-family: var(--outfit); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.2s; }
.tema-semanasanta .nav-back:hover { opacity: 0.7; }
.tema-semanasanta .nav-brand .sub { display: block; font-size: 9px; letter-spacing: 3px; color: var(--text-dim); margin-top: 2px; font-weight: 600; }
.nav-links { align-items: center; }
@media (max-width: 768px) {
	nav { padding: 14px 16px; }
	.nav-back, .tema-semanasanta .nav-back { display: none; }
	.nav-brand { white-space: nowrap; }
	.nav-links { display: flex; gap: 0; }
	.nav-links a:not(.p360-idioma) { display: none; }
}

/* ── Selector de idioma ────────────────────────────────────────────────────────────────────────────────────────────── */
.p360-idiomas { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 40px; border: 1px solid var(--border, rgba(255,255,255,0.1)); }
.nav-links .p360-idioma, .p360-idioma { font-family: var(--outfit); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 9px; border-radius: 40px; color: var(--text-dim); }
.p360-idioma[aria-current="true"] { background: var(--gold, #C9A84C); color: var(--bg, #080507) !important; }
.tema-patiosycruces .p360-idioma[aria-current="true"] { background: var(--burgundy); color: var(--cream) !important; }
.tema-portada .p360-idiomas { position: absolute; top: 20px; right: 20px; z-index: 5; border-color: var(--border); }
.tema-portada .p360-idioma { color: var(--text-dim); }
.tema-portada .p360-idioma[aria-current="true"] { background: var(--gold-ss); color: var(--bg) !important; }

/* ── Foco visible para quien navega con el teclado ─────────────────────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold, var(--gold-pyc, #C9A84C)); outline-offset: 3px; border-radius: 6px; }
.tema-patiosycruces a:focus-visible { outline-color: var(--burgundy); }
.p360-saltar { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: #000; color: #fff; font-size: 14px; }
.p360-saltar:focus { top: 12px; }

/* ── Imágenes: el tamaño lo da el marco aunque la imagen aún no haya cargado ───────────────────────────────────────── */
.screen-inner img { aspect-ratio: auto; }
.hero-logo, .door-logo { aspect-ratio: 1 / 1; }

/* ── Secciones añadidas desde el CRM (sin diseño propio en la plantilla) ───────────────────────────────────────────── */
.p360-extra .section-header { margin-bottom: 40px; }
.p360-extra-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.p360-extra-texto { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius, 16px); padding: 28px; }
.p360-extra-texto img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 18px; }
.p360-extra-texto h3 { font-family: var(--cinzel); font-size: 17px; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 10px; }
.tema-patiosycruces .p360-extra-texto h3 { color: var(--burgundy); }
.p360-extra-texto .p360-extra-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.p360-extra-texto .p360-extra-cuerpo { font-size: 15px; color: var(--text-dim); line-height: 1.7; }
.p360-extra-texto .p360-extra-cuerpo p + p { margin-top: 10px; }
.p360-extra-texto .p360-extra-cuerpo a { text-decoration: underline; }
.tema-portada .p360-extra { padding: 20px 0 60px; }
.tema-portada .p360-extra-texto { background: var(--card); border-color: var(--border); }
.tema-portada .p360-extra-texto h3 { color: var(--cream-ss); }

/* ── Móvil ─────────────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	section { padding: 72px 0; }
	.section-header { margin-bottom: 44px; }
	.features-grid { grid-template-columns: 1fr; }
	.feat-card { padding: 28px 24px; }
	.screens-wrap { gap: 16px; }
	.phone-frame { width: calc(50% - 8px); max-width: 220px; border-radius: 28px; }
	.phone-frame:nth-child(2) { order: -1; width: 70%; max-width: 260px; transform: none; }
	.phone-frame:hover, .phone-frame:nth-child(2):hover { transform: none; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat-item { border-right: none; padding: 24px 12px; }
	.hero-logo { width: 130px; height: 130px; }
	.hero-scroll { display: none; }
	.tema-portada .p360-idiomas { top: 14px; right: 14px; }
	.door-logos .door-logo { width: 88px; height: 88px; }
}

/* ── Menos movimiento si el sistema lo pide ────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	#particles { display: none; }
}

/* ── Portada: el titular de la franja es un h2 (antes h3, sin h2 delante) ─────────────────────────────────────────── */
.info-strip .p360-familia-titulo { font-family: var(--cinzel); font-size: 18px; letter-spacing: 3px; color: var(--cream-ss); margin-bottom: 12px; font-weight: 700; }

/* ── Landings: lo que el original llevaba en línea (posiciones del mapa, avatares, alineación de la comunidad) ─────── */
.p360-lm-1 { top: 47%; left: 58%; }
.p360-lm-2 { top: 44%; left: 28%; }
.p360-lm-3 { top: 50%; left: 78%; }
.p360-lm-izquierda { top: 20px; left: 20px; }
.p360-lm-derecha { top: 20px; right: 20px; }
.tema-patiosycruces .p360-lm-izquierda, .tema-patiosycruces .p360-lm-derecha { top: 18px; }
.lm-pin .p360-icono { width: 16px; height: 16px; }
.p360-izquierda { text-align: left; }
.section-subtitle.p360-entradilla { margin: 0 0 32px; }
.fp-action .p360-icono { width: 13px; height: 13px; }
.tema-semanasanta .p360-avatar-0 { background: linear-gradient(135deg, #8B1A1A, #C9A84C); }
.tema-semanasanta .p360-avatar-2 { background: linear-gradient(135deg, #2a4a8a, #4a8ac9); }
.tema-patiosycruces .p360-avatar-0 { background: linear-gradient(135deg, #F71042, #FFBA57); }
.tema-patiosycruces .p360-avatar-1 { background: linear-gradient(135deg, #24007D, #FF2151); }
.tema-patiosycruces .p360-avatar-2 { background: linear-gradient(135deg, #FFBA57, #F71042); }
a.nav-brand { display: inline-block; }

/* ── DERPE v3.4 p214 h1 con la marca y su lema: el envoltorio no se ve ni se anima; cada línea conserva su clase, su aspecto y su retraso ─────────── */
.p360-h1 { margin: 0; padding: 0; font: inherit; letter-spacing: normal; color: inherit; }
.p360-h1 > span { display: block; }
header.hub-header > .p360-h1, .hero-inner > .p360-h1 { animation: none; }
header.hub-header > .p360-h1 > span, .hero-inner > .p360-h1 > span { animation: fadeInUp 0.85s ease both; }
