:root { 
    --p506-bg: #130f0e; 
    --p506-wood: #2c1e1a;   
    --p506-accent: #d4a373; 
    --p506-detail: #5d1c15; 
    --transition-premium: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
/* --- PRE-LOADER --- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--p506-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}
.loader-logo {
    animation: pulseLogo 2.5s ease-in-out infinite;
}
@keyframes pulseLogo {
    0%, 100% { opacity: 0.6; transform: scale(0.98); filter: brightness(0.8); }
    50% { opacity: 1; transform: scale(1.02); filter: brightness(1.2); }
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* --- ISOTIPO ESTILO MONEDA --- */
.iso-emblem {
    background: conic-gradient(
        from 0deg,
        #2c1e1a 0deg 45deg,
        #1c1614 45deg 90deg,
        #2c1e1a 90deg 135deg,
        #1c1614 135deg 180deg,
        #2c1e1a 180deg 225deg,
        #1c1614 225deg 270deg,
        #2c1e1a 270deg 315deg,
        #1c1614 315deg 360deg
    );
    border: 1px solid var(--p506-accent);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 0 0 20px rgba(212, 163, 115, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* --- ESTILOS BASE ACLARADOS --- */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--p506-bg);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(212, 163, 115, 0.12) 0%, transparent 75%), 
        url("https://www.transparenttextures.com/patterns/dark-linen.png");
    background-attachment: fixed;
    scroll-behavior: smooth;
    overflow-x: hidden;
    color: #f3f4f6; 
}
.serif-title { font-family: 'Cinzel', serif; letter-spacing: 0.25em; }
.business-title { font-family: 'Montserrat', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.elegant-italic { font-family: 'Baskervville', serif; font-style: italic; }
@keyframes revealCard { 
    0% { opacity: 0; transform: translateY(40px); filter: blur(10px); } 
    100% { opacity: 1; transform: translateY(0); filter: blur(0px); } 
}
.animate-reveal { 
    opacity: 0;
    animation: revealCard 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}
/* --- HEADER ACLARADO --- */
.header-texture {
    position: relative;
    background-color: #130f0e;
    background-image: 
        linear-gradient(to bottom, rgba(19, 15, 14, 0.5) 0%, var(--p506-bg) 100%),
        url("img/fondoheader.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid rgba(212, 163, 115, 0.1);
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
#purpose-card {
    transition: all 0.8s ease;
    border-radius: 4px;
    background: rgba(19, 15, 14, 0.7) !important;
}
#discover-tagline {
    animation: revealCard 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* --- NAVIGATION MÓVIL & MEJORA SCROLL INDICATOR --- */
.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scroll::-webkit-scrollbar {
    display: none;
}
/* CORREGIDO: Se eliminó el difuminado (mask-image) */
.nav-scroll-container {
    position: relative;
    overflow: visible;
}
.scroll-hint-arrow {
    background: linear-gradient(to left, var(--p506-bg) 20%, transparent);
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 20px;
}
.filter-btn {
    transition: var(--transition-premium);
    position: relative;
    opacity: 0.7;
}
.filter-btn:hover, .filter-btn.font-black {
    opacity: 1;
    color: var(--p506-accent);
}
/* --- BUSCADOR PROMINENTE --- */
.search-container {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 163, 115, 0.3) !important;
    border-bottom: 2px solid var(--p506-accent) !important;
    padding: 12px 20px !important;
    transition: var(--transition-premium);
    max-width: 320px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.search-container:focus-within {
    border-color: var(--p506-accent) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.02);
}
.search-input {
    letter-spacing: 0.2em !important;
    font-size: 12px !important;
    font-weight: 600;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
/* --- PORTAL LANDING --- */
.portal-card {
    position: relative;
    height: 420px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid rgba(212, 163, 115, 0.15);
    background: #1c1614;
}
.portal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.9); 
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
}
.portal-card:hover img {
    transform: scale(1.05);
    filter: saturate(1.1) brightness(1.1);
}
.portal-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(19, 15, 14, 0.8) 0%, transparent 60%);
    z-index: 10;
}
/* --- TARJETAS DE RESULTADOS --- */
.glass-card {
    display: flex;
    flex-direction: column;
    height: 100%; 
    background: rgba(45, 40, 38, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(212, 163, 115, 0.2);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}
.glass-card .p-8 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem !important;
}
.glass-card:hover {
    border-color: var(--p506-accent);
    background: rgba(60, 50, 45, 0.8);
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.glass-card button {
    margin-top: auto !important;
    border-radius: 12px;
    padding: 12px;
    font-size: 8px;
    letter-spacing: 0.25em;
    border: 1px solid rgba(212, 163, 115, 0.4);
    background: transparent;
    color: var(--p506-accent);
    text-transform: uppercase;
    font-weight: 900;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-card:hover button {
    background: var(--p506-accent);
    color: var(--p506-bg);
    transform: scale(1.05);
    letter-spacing: 0.3em;
}
/* --- BOTÓN VOLVER ARRIBA --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--p506-accent);
    color: var(--p506-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
#back-to-top.show { opacity: 1; visibility: visible; }
/* --- AJUSTES DE MODAL --- */
#modal-negocio {
    z-index: 1000;
    backdrop-filter: blur(15px);
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
#modal-content {
    width: 100%;
    max-width: 550px; 
    max-height: 80vh;  
    overflow-y: auto;
    background-color: #1c1614;
    border: 1px solid rgba(212, 163, 115, 0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
    position: relative;
    border-radius: 8px;
}
/* --- FOOTER --- */
footer.header-texture {
    background-position: center top;
    background-image: 
        linear-gradient(to top, rgba(19, 15, 14, 0.98) 0%, rgba(19, 15, 14, 0.8) 50%, var(--p506-bg) 100%),
        url("img/fondoheader.webp");
    background-size: cover;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(212, 163, 115, 0.1);
    padding-top: 5rem !important;
}
footer .text-stone-400 { color: #e5e7eb !important; opacity: 0.9; }
/* --- SISTEMA VER MÁS --- */
.grid-limitado { max-height: 1400px; overflow: hidden; transition: max-height 1.5s ease; }
.grid-expandido { max-height: 30000px !important; }
/* --- ANIMACIÓN FLECHA REVELADORA --- */
@keyframes bounce-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}
.animate-bounce-x { animation: bounce-x 1.5s infinite; }
/* --- AJUSTE ETIQUETAS Y ESPACIOS --- */
/* 1. ELIMINAR ESPACIO ENTRE HEADER Y SALUD */
#section-results { 
    padding-top: 0px !important; 
    margin-top: -45px !important; 
}
/* 2. ELIMINAR ESPACIO ENTRE SALUD Y ETIQUETAS */
#categoria-titulo { 
    margin-bottom: -15px !important; 
    padding-top: 0px !important; 
}
#sub-categorias { 
    margin-top: 0px !important; 
    margin-bottom: 0.5rem !important; 
}
/* 3. ESTILO ETIQUETAS */
#subcat-scroll button {
    font-size: 13px !important; 
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.6;
    padding: 8px 16px !important;
}
#subcat-scroll button:hover { opacity: 1; color: var(--p506-accent); }
/* Efecto subrayado dorado en etiqueta activa */
#subcat-scroll button.bg-white, 
#subcat-scroll button.text-black {
    background-color: transparent !important;
    color: var(--p506-accent) !important;
    opacity: 1 !important;
}
#subcat-scroll button.bg-white::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--p506-accent);
    box-shadow: 0 0 8px var(--p506-accent);
}
/* --- AJUSTE LOGO Y NAVBAR (NUEVO) ---  */
/* Clase para el contenedor que envuelve logo y nombre */
.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Espacio entre el isotipo y el texto */
    flex-shrink: 0;
}
/* Ajuste específico para el isotipo en el navbar */
.nav-logo-iso {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
/* Ajuste del nombre Punto 506 */
.nav-brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: white;
    font-weight: 700;
    white-space: nowrap;
}
/* --- NUEVOS ESTILOS ICONOS DE CONTACTO (MODAL) ---  */
.flex.justify-center.gap-6 a {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 163, 115, 0.2);
    color: var(--p506-accent);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px; 
}
.flex.justify-center.gap-6 a:hover {
    background-color: var(--p506-accent);
    color: var(--p506-bg);
    transform: translateY(-5px);
    border-color: var(--p506-accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.flex.justify-center.gap-6 a::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    color: var(--p506-accent);
}

.flex.justify-center.gap-6 a:hover::after {
    opacity: 1;
}
/* --- RESPONSIVE / MÓVIL --- */
@media (max-width: 768px) {
    .header-texture { 
        padding-top: 2rem !important; 
        padding-bottom: 2rem !important;
    }
    #section-results { 
        margin-top: -25px !important; 
    }
    #categoria-titulo { 
        margin-bottom: -10px !important; 
    }
    #categoria-titulo h2 { line-height: 1 !important; font-size: 1.25rem; }

    #subcat-scroll button {
        font-size: 11px !important; 
        padding: 6px 10px !important;
    }
    #grid-negocios { 
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important; 
        margin-top: 0.5rem !important;
    }
    .flex.justify-center.gap-6 a {
        width: 3rem;
        height: 3rem;
    }
    .nav-brand-name {
        font-size: 0.85rem;
    }
}
.hidden { display: none !important; }
/* Contenedor del Modal de Registro */
#modal-registro {
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.9);
}
/* Diseño de los campos de entrada (Inputs) */
.input-registro {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 163, 115, 0.2);
    padding: 1rem;
    color: white;
    font-size: 13px;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: all 0.4s ease;
}
/* Efecto al seleccionar el campo */
.input-registro:focus {
    outline: none;
    background: rgba(212, 163, 115, 0.05);
    border-color: var(--p506-accent);
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.1);
}
/* Estilo del texto de ejemplo (Placeholder) */
.input-registro::placeholder {
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.2em;
}
/* Botón de enviar dentro del modal */
#modal-registro button[type="submit"] {
    background: var(--p506-accent);
    color: var(--p506-bg);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
#modal-registro button[type="submit"]:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 163, 115, 0.2);
}
/* Ajuste móvil para el formulario */
@media (max-width: 768px) {
    #modal-registro .bg-[#1c1614] {
        width: 95%;
        padding: 1.5rem !important;
    }
}
/* --- TARJETA PREMIUM (NEÓN DORADO) --- */

/* 1. Estado Base Premium */
.glass-card.premium {
    border: 1px solid var(--p506-accent) !important;
    background: linear-gradient(145deg, rgba(60, 50, 45, 0.4), rgba(28, 22, 20, 0.9));
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.1);
    position: relative;
}

/* 2. El Efecto Neón (Borde de luz) */
/* --- CONTINUACIÓN Y CIERRE DE TARJETA PREMIUM --- */

.glass-card.premium::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 2px; /* Un poco más de grosor para que se note el neón */
    background: linear-gradient(45deg, var(--p506-accent), #fff, var(--p506-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    animation: neon-pulse 3s infinite ease-in-out;
    pointer-events: none; /* CRÍTICO: Para que no interfiera con los clics */
    z-index: 1;
}

/* Ajuste para que el contenido de la tarjeta esté por encima del brillo */
.glass-card.premium > * {
    position: relative;
    z-index: 2;
}

/* Estilo para los botones cuando están en grupo (Premium) */
.premium-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-premium-menu {
    background: var(--p506-accent) !important;
    color: var(--p506-bg) !important;
    flex: 1;
}

.btn-premium-detalles {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    flex: 1;
    border: 1px solid rgba(212, 163, 115, 0.3) !important;
}

/* Fin del archivo CSS */
