/* styles.css - Estilos del Directorio guiadecompras.ar y del Panel Delphi */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- ESTILOS DE LA PARTE PÚBLICA (DIRECTORIO PREMIUM VISTOSO Y ELEGANTE) --- */
:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --premium-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

.public-body {
    background-color: #0b0f19;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #0b0f19 0%, #111827 100%);
    font-family: 'Outfit', sans-serif;
    color: #f1f5f9;
    min-height: 100vh;
}

/* Navbar Público */
.public-body .navbar {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-body .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Hero Section */
.public-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    padding: 6rem 1rem 8rem 1rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.public-hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Caja de Búsqueda */
.search-box-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    margin-top: -3.5rem;
}

.search-box-container input,
.search-box-container select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 12px;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.search-box-container input::placeholder {
    color: #94a3b8;
}

.search-box-container input:focus,
.search-box-container select:focus {
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 0.25rem rgba(168, 85, 247, 0.25);
    color: #fff;
    outline: none;
}

.search-box-container select option {
    background-color: #0f172a;
    color: #fff;
}

.search-box-container .input-group-text {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8;
}

/* Filtros rápidos en píldoras */
.public-body .badge.rounded-pill {
    transition: all 0.3s ease;
    font-weight: 600;
}

.public-body .badge.bg-white {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

.public-body .badge.bg-white:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.public-body .badge.bg-primary {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Tarjeta Comercial */
.merchant-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.merchant-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15), 0 0 15px rgba(99, 102, 241, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
}

/* Destaque dorado para comercios premium */
.merchant-card.featured-card {
    position: relative;
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.95)), var(--premium-gold);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.merchant-card.featured-card::before {
    content: '★ DESTACADO';
    position: absolute;
    top: -12px;
    right: 15px;
    background: var(--premium-gold);
    color: #1e1b4b;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
    letter-spacing: 0.05em;
}

.merchant-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
}

.merchant-card hr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-badge-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.service-badge-link:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.service-badge-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.badge-cat {
    background-color: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-weight: 600;
}

.badge-city {
    background-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-weight: 500;
}

.public-body .btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
}

.public-body .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.public-body .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.public-body .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.public-body .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.public-body .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}


/* --- ESTILOS DEL PANEL MERCHANT (DELPHI / WINDOWS COMPACTO) --- */
.delphi-body {
    background-color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #333;
}

.delphi-navbar {
    background-color: #2b579a; /* Azul Delphi / Windows */
    color: #ffffff;
    padding: 4px 15px;
    border-bottom: 2px solid #1e3f70;
}

.delphi-navbar .navbar-brand {
    font-weight: bold;
    font-size: 14px;
    color: #ffffff !important;
}

.delphi-navbar .nav-link {
    color: #d2e1f7 !important;
    font-size: 13px;
    padding: 4px 10px !important;
}

.delphi-navbar .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.delphi-card {
    background: #fcfcfc;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.delphi-card-header {
    background-color: #e6e6e6;
    border-bottom: 1px solid #c8c8c8;
    padding: 6px 12px;
    font-weight: 600;
    color: #444;
}

.delphi-card-body {
    padding: 12px;
}

/* Tabla Delphi */
.delphi-table {
    font-size: 12px;
    margin-bottom: 0;
}

.delphi-table th {
    background-color: #e6e6e6;
    border-bottom: 2px solid #c8c8c8 !important;
    color: #333;
    font-weight: 600;
    padding: 6px 10px;
}

.delphi-table td {
    padding: 6px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}

.delphi-table tr:hover {
    background-color: #eaf2fb;
}

/* Campos de Formulario Delphi (Label a la izquierda) */
.delphi-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.delphi-form-label {
    width: 120px;
    text-align: right;
    padding-right: 12px;
    font-weight: 500;
    color: #555;
    margin-bottom: 0;
}

.delphi-form-input-wrapper {
    flex: 1;
}

.delphi-input {
    font-size: 12px;
    padding: 3px 8px;
    border: 1px solid #a0a0a0;
    border-radius: 2px;
    height: 26px;
    width: 100%;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
}

.delphi-input:focus {
    border-color: #2b579a;
    outline: 0;
    box-shadow: 0 0 3px rgba(43,87,154,0.5);
}

.delphi-btn {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 2px;
    height: 26px;
    line-height: 18px;
    font-weight: 500;
}

.delphi-btn-primary {
    background-color: #2b579a;
    border-color: #1e3f70;
    color: white;
}

.delphi-btn-primary:hover {
    background-color: #1e3f70;
    color: white;
}

.delphi-btn-secondary {
    background-color: #f0f0f0;
    border-color: #ccc;
    color: #333;
}

.delphi-btn-secondary:hover {
    background-color: #e0e0e0;
    color: #333;
}

.delphi-btn-danger {
    background-color: #d9534f;
    border-color: #d43f3a;
    color: white;
}

.delphi-btn-danger:hover {
    background-color: #c9302c;
    color: white;
}

/* Delphi Modal Styling */
.modal-delphi .modal-content {
    background-color: #f0f0f0;
    border: 1px solid #808080;
    border-radius: 3px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.modal-delphi .modal-header {
    background-color: #2b579a;
    color: white;
    padding: 6px 12px;
    border-bottom: 1px solid #1e3f70;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.modal-delphi .modal-title {
    font-size: 13px;
    font-weight: bold;
}

.modal-delphi .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
    font-size: 10px;
    padding: 8px;
}

.modal-delphi .modal-body {
    padding: 15px;
}

.modal-delphi .modal-footer {
    background-color: #e6e6e6;
    border-top: 1px solid #c8c8c8;
    padding: 6px 12px;
}
