/* assets/sitio.css — Estilos compartidos de EnEvento.cl (sin librerías externas) */

/* ---------- Base, cabecera y formulario (v9) ---------- */
html { scroll-behavior: smooth; }
body { margin: 0; background: #070B16; }
a { color: #E8ECF4; }
a:hover { color: #FFFFFF; }
section[id] { scroll-margin-top: 84px; }
.cabecera { position: sticky; top: 0; z-index: 60; background: rgba(7, 11, 22, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #1A2338; transition: box-shadow .2s; }
.cabecera.con-sombra { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.cabecera-interior { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marca { text-decoration: none; font-family: Sora, sans-serif; font-size: 26px; letter-spacing: -0.5px; color: #FFFFFF; flex-shrink: 0; }
.nav-escritorio { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 500; }
.nav-link { text-decoration: none; color: #AEB8CC; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-link:hover { color: #FFFFFF; }
.nav-link.activo { color: #FFFFFF; border-bottom-color: #FF8A3D; }
.cabecera-acciones { display: flex; align-items: center; gap: 10px; }
.btn-cotizar { text-decoration: none; background: #FF8A3D; color: #0A0F1C !important; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.btn-menu { display: none; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; color: #FFFFFF; background: #0E1526; border: 1px solid #2E3A55; border-radius: 999px; padding: 10px 16px; cursor: pointer; min-height: 44px; }
.btn-menu .ico-cerrar { display: none; }
.btn-menu[aria-expanded="true"] .ico-abrir { display: none; }
.btn-menu[aria-expanded="true"] .ico-cerrar { display: inline; }
.menu-movil { border-top: 1px solid #1A2338; background: #070B16; padding: 8px 24px 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
.menu-movil[hidden] { display: none; }
.menu-movil-link { display: block; text-decoration: none; color: #E8ECF4; font-size: 18px; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid #1A2338; }
.menu-movil-link.activo { color: #FF8A3D; }
@media (max-width: 1100px) {
    .nav-escritorio { display: none; }
    .btn-menu { display: inline-flex; }
}
@media (max-width: 480px) {
    .marca { font-size: 22px; }
    .btn-cotizar { padding: 10px 14px; font-size: 14px; }
    .btn-menu span { display: none; }
    .btn-menu { padding: 10px 12px; }
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #FF8A3D; outline-offset: 2px; }
input:focus, select:focus, textarea:focus { border-color: #3D7BFF !important; outline: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-estado { grid-column: 1 / -1; font-size: 16px; font-weight: 600; min-height: 1px; }
.form-estado[data-tipo="ok"] { color: #6FD39B; }
.form-estado[data-tipo="error"] { color: #FF8F8F; }
.form-estado[data-tipo="enviando"] { color: #AEB8CC; }
button[disabled] { opacity: .6; cursor: wait !important; }
.wsp-flotante { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 999px; background: #25D366; color: #0A0F1C; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.wsp-flotante:hover { color: #0A0F1C; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Accesibilidad ---------- */
.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: #FF8A3D; color: #0A0F1C !important; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }

/* ---------- Portada con foto de fondo (todas las páginas) ---------- */
.portada-foto { position: relative; overflow: hidden; border-bottom: 1px solid #1A2338; background: #070B16; }
.portada-foto > .fondo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.portada-foto::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7, 11, 22, .94) 0%, rgba(7, 11, 22, .80) 45%, rgba(7, 11, 22, .45) 100%), linear-gradient(0deg, #070B16 0%, rgba(7, 11, 22, 0) 35%); }
.portada-foto > :not(.fondo) { position: relative; z-index: 2; }
@media (max-width: 760px) {
    .portada-foto::before { background: linear-gradient(0deg, rgba(7, 11, 22, .96) 0%, rgba(7, 11, 22, .82) 60%, rgba(7, 11, 22, .70) 100%); }
}

/* Botón secundario sobre foto */
.chip-acceso { display: inline-flex; align-items: center; text-decoration: none; color: #FFFFFF; background: rgba(7, 11, 22, .55); border: 1px solid rgba(255, 255, 255, .28); padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 17px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .15s, background .15s; }
.chip-acceso:hover { color: #FFFFFF; border-color: #FF8A3D; background: rgba(7, 11, 22, .75); }

/* Cifras de la portada */
.cifra { display: flex; flex-direction: column; gap: 6px; background: rgba(14, 21, 38, .82); border: 1px solid #1A2338; border-radius: 16px; padding: 18px 20px; }
.cifra b { font-family: Sora, sans-serif; font-weight: 800; font-size: 34px; line-height: 1; color: #FFFFFF; }
.cifra span { font-size: 15px; line-height: 1.35; color: #C9D2E3; }

/* ---------- Tarjetas "¿Qué evento estás organizando?" ---------- */
.tarjeta-publico { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 380px; padding: 32px; border-radius: 20px; border: 1px solid #1A2338; text-decoration: none; color: #FFFFFF; box-sizing: border-box; }
.tarjeta-publico > .fondo { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.tarjeta-publico::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(7, 11, 22, .96) 0%, rgba(7, 11, 22, .70) 50%, rgba(7, 11, 22, .25) 100%); }
.tarjeta-publico > :not(.fondo) { position: relative; z-index: 2; }
.tarjeta-publico .etiqueta { align-self: flex-start; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #FF8A3D; border: 1px solid #3A2A20; background: rgba(22, 15, 11, .85); padding: 6px 12px; border-radius: 999px; }
.tarjeta-publico h3 { margin: 0; font-family: Sora, sans-serif; font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.6px; line-height: 1.1; color: #FFFFFF; }
.tarjeta-publico p { margin: 0; font-size: 17px; color: #D5DCE8; max-width: 520px; }
.tarjeta-publico .ir { font-weight: 700; color: #FF8A3D; padding-top: 6px; }
.tarjeta-publico:hover { color: #FFFFFF; border-color: #2E3A55; }
.tarjeta-publico:hover > .fondo { transform: scale(1.04); }

/* ---------- Franja de fotos (desplazamiento horizontal en pantallas chicas) ---------- */
.galeria-franja { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.galeria-franja img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid #1A2338; display: block; scroll-snap-align: start; }

/* ---------- Preguntas frecuentes ---------- */
.faq details { background: #0E1526; border: 1px solid #1A2338; border-radius: 14px; }
.faq details[open] { border-color: #22345C; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: Sora, sans-serif; font-weight: 600; font-size: 19px; color: #FFFFFF; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-family: 'JetBrains Mono', monospace; font-size: 22px; color: #FF8A3D; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 24px 22px; color: #AEB8CC; font-size: 17px; }

/* ---------- Pie ---------- */
.pie-link { text-decoration: none; color: #C9D2E3; }
.pie-link:hover { color: #FFFFFF; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .tarjeta-publico > .fondo { transition: none; }
    .tarjeta-publico:hover > .fondo { transform: none; }
}
