/* ==========================================================================
   PLAZA ROSAL - ESTILOS FINALIZADOS
   ========================================================================== */
:root {
    --bg-default: #f8fafc;
    --card-glass: rgba(255, 255, 255, 0.92);
    --text-dark: #0f172a;
    --text-muted: #475569;
    --brand-blue: #2563eb;
    --brand-purple: #7c3aed;
    --wa-green: #25d366;
    --wa-green-hover: #1eb956;
    --border-color: rgba(226, 232, 240, 0.8);
    --radius: 20px;
    
    --open-green: #10b981;
    --closed-red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-default);
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
}

/* FONDOS DINÁMICOS */
.dynamic-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    z-index: -2; opacity: 0;
    transition: opacity 0.6s ease-in-out;
}
.dynamic-bg.active { opacity: 1; }

.dynamic-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(248, 250, 252, 0.4);
    backdrop-filter: blur(8px);
    z-index: -1; opacity: 0;
    transition: opacity 0.6s ease-in-out;
}
.dynamic-overlay.active { opacity: 1; }

/* BARRA DE ESTADO FLOTANTE SUPERIOR */
.status-bar {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.82rem;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.status-info { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.open {
    background-color: var(--open-green);
    box-shadow: 0 0 8px var(--open-green);
    animation: pulse-green 2s infinite;
}
.status-dot.closed {
    background-color: var(--closed-red);
    box-shadow: 0 0 8px var(--closed-red);
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-disclaimer { color: #94a3b8; font-size: 0.75rem; }

/* Splash Screen (6 Segundos) */
.splash-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #ffffff; display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash-screen.splash-hidden { opacity: 0; visibility: hidden; }
.splash-content { text-align: center; }
.splash-logo { max-width: 240px; margin-bottom: 15px; }
.splash-text { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; margin-bottom: 15px; }
.splash-loader { width: 140px; height: 4px; background: #e2e8f0; border-radius: 4px; margin: 0 auto; overflow: hidden; position: relative; }
.splash-loader::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
    animation: loading 6s infinite ease-in-out;
}
@keyframes loading { 0% { left: -100%; } 100% { left: 100%; } }

/* Header */
.header {
    position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100; padding-top: 15px;
}

.header-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px 15px; gap: 15px; flex-wrap: wrap;
}

.brand-logo { max-width: 190px; height: auto; }

/* Botón/Buscador Minimalista */
.search-link-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid var(--border-color);
    padding: 10px 18px; border-radius: 30px;
    color: var(--text-muted); text-decoration: none;
    font-size: 0.88rem; font-weight: 600;
    transition: all 0.2s ease;
}

.search-link-btn:hover {
    background: #ffffff;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.search-link-btn i { color: var(--brand-blue); font-size: 0.95rem; }

/* Menú de Categorías con Pista Visual de Desplazamiento */
.category-menu { max-width: 1200px; margin: 0 auto; padding: 0 15px 12px; }

.menu-scroll-wrapper {
    position: relative;
    width: 100%;
}

/* Sombra tenue a la derecha para insinuar que hay más botones */
.menu-scroll-wrapper::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 35px; height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none; border-radius: 0 30px 30px 0;
}

.menu-scroll {
    display: flex; gap: 10px;
    overflow-x: auto; padding-bottom: 5px; padding-right: 25px;
    scrollbar-width: none;
}
.menu-scroll::-webkit-scrollbar { display: none; }

.chip {
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-muted); padding: 8px 18px; border-radius: 30px;
    font-size: 0.88rem; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: all 0.2s ease; display: flex; align-items: center; gap: 6px;
    flex-shrink: 0;
}

.chip:hover { background: #ffffff; color: var(--text-dark); }
.chip.active {
    background: var(--brand-blue); color: #ffffff; border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Grid y Tarjetas */
.main-content { max-width: 1200px; margin: 30px auto; padding: 0 15px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; }

.card-item {
    background: var(--card-glass); backdrop-filter: blur(12px);
    border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column;
}

.card-item:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); }
.card-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card-item:hover .card-media img { transform: scale(1.05); }

.badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255, 255, 255, 0.95); padding: 6px 12px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 700; color: var(--text-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.card-body .description { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.card-body .description strong { color: var(--brand-purple); }

.btn-wa {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px;
    background: var(--wa-green); color: #ffffff; text-decoration: none; font-weight: 700; font-size: 0.9rem;
    border-radius: 10px; transition: background 0.2s ease;
}
.btn-wa:hover { background: var(--wa-green-hover); }

/* Footer */
.footer {
    text-align: center; padding: 40px 15px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color); margin-top: 50px;
}
.footer p { font-size: 0.9rem; color: var(--text-dark); }
.footer .copy { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }

/* Ajustes Responsive en Móviles */
@media (max-width: 600px) {
    .header-container { justify-content: space-between; gap: 10px; }
    .brand-logo { max-width: 140px; }
    .search-link-btn { padding: 8px 14px; font-size: 0.8rem; }
    .status-container { justify-content: center; text-align: center; }
    .services-grid { grid-template-columns: 1fr; }
}