/* =========================================
   PALETA MODERNA / LIGHT THEME (Estilo Chekealo)
   ========================================= */
:root {
    --primary: #ef4444;       /* Rojo vibrante */
    --primary-hover: #dc2626;
    --bg-page: #f8fafc;       /* Fondo general claro */
    --bg-card: #ffffff;       /* Blanco puro para tarjetas */
    --text-dark: #0f172a;     /* Texto principal oscuro */
    --text-gray: #64748b;     /* Texto secundario */
    --border-light: #e2e8f0;  
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1);
    --radius-full: 9999px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   NAVBAR (Transparente / Blanco)
   ========================================= */
.top-nav {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 20px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-size: 1.5rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.logo span { color: white; }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
    color: white; text-decoration: none; font-weight: 500; font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }

.btn-primary {
    background-color: var(--primary); color: white; border: none;
    padding: 10px 24px; border-radius: var(--radius-full); font-weight: 600;
    cursor: pointer; transition: var(--transition); font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    padding: 140px 20px 80px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: white;
    min-height: 80vh;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: -2;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}
.hero-content {
    max-width: 900px; width: 100%; z-index: 10;
}
.hero-content h1 {
    font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 15px;
    letter-spacing: -1px; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content h1 .highlight { color: var(--primary); }
.hero-content p {
    font-size: 1.1rem; font-weight: 400; margin-bottom: 40px; color: #f1f5f9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* BUSCADOR PILL */
.search-pill {
    background: white; border-radius: 50px; padding: 8px 8px 8px 24px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); margin-bottom: 30px;
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.search-input-group {
    display: flex; align-items: center; flex: 2; gap: 10px;
}
.search-input-group i { color: var(--text-gray); font-size: 1.1rem; }
.search-input-group input, .search-input-group select {
    border: none; background: transparent; width: 100%; font-size: 1rem;
    color: var(--text-dark); font-family: 'Inter', sans-serif;
}
.search-input-group input::placeholder { color: #94a3b8; }
.location-group { flex: 1; }
.invisible-select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right center; padding-right: 20px;
}
.divider { width: 1px; height: 30px; background-color: var(--border-light); margin: 0 20px; }
.btn-search {
    background: var(--primary); color: white; border: none; border-radius: 50px;
    padding: 14px 32px; font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: var(--transition);
}
.btn-search:hover { background: var(--primary-hover); transform: scale(1.05); }

/* CATEGORÍAS RÁPIDAS */
.quick-categories {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap;
}
.cat-card {
    background: white; color: var(--text-dark); padding: 12px 20px;
    border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; box-shadow: var(--shadow-md); transition: var(--transition);
    min-width: 100px;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--primary); }
.cat-icon {
    font-size: 1.5rem; color: var(--primary); background: #f8fafc;
    width: 45px; height: 45px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.cat-card span { font-size: 0.85rem; font-weight: 600; }

/* FILTROS AVANZADOS PILL */
.advanced-filters {
    background: white; border-radius: 50px; padding: 10px 25px;
    display: inline-flex; align-items: center; gap: 15px; box-shadow: var(--shadow-md);
    flex-wrap: wrap; justify-content: center;
}
.filter-label { color: var(--text-dark); font-weight: 600; font-size: 0.9rem; display: flex; gap: 8px; align-items: center;}
.advanced-filters select {
    border: none; background: #f1f5f9; padding: 8px 16px; border-radius: 50px;
    font-size: 0.85rem; color: var(--text-dark); cursor: pointer; font-family: 'Inter'; font-weight: 500;
}

/* =========================================
   GRID DE RESULTADOS (MAIN CONTENT)
   ========================================= */
.main-content { padding: 50px 0; }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px;
}
.service-item {
    background-color: var(--bg-card); border-radius: var(--radius-lg);
    display: flex; flex-direction: column; padding: 15px;
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
    transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.service-item:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(239, 68, 68, 0.3);
}
.service-item .business-link {
    text-decoration: none; color: var(--text-dark); display: flex; flex-direction: column; align-items: center; width: 100%; pointer-events: none;
}
.service-item .business-link img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 12px; background-color: #f1f5f9;
}
.service-item .business-link span {
    font-size: 1rem; font-weight: 700; color: var(--text-dark); text-align: center; line-height: 1.3;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.dir-verified-badge {
    display: inline-block; width: 16px; height: 16px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2310B981' d='M22.5 12.5c0-1.58-.875-2.95-2.148-3.6.154-.435.238-.905.238-1.4 0-2.21-1.71-3.998-3.818-3.998-.47 0-.92.084-1.336.25C14.818 2.415 13.51 1.5 12 1.5s-2.816.917-3.437 2.25c-.415-.165-.866-.25-1.336-.25-2.11 0-3.818 1.79-3.818 4 0 .495.083.965.238 1.4-1.272.65-2.147 2.02-2.147 3.6 0 1.578.875 2.95 2.147 3.6-.154.435-.238.905-.238 1.4 0 2.21 1.71 4 3.818 4 .47 0 .92-.086 1.336-.25.62 1.334 1.926 2.25 3.437 2.25 1.512 0 2.818-.916 3.437-2.25.415.163.866.248 1.336.248 2.11 0 3.818-1.79 3.818-4 0-.495-.083-.965-.238-1.4 1.272-.65 2.147-2.02 2.147-3.6z'/%3E%3Cpath fill='%23FFF' d='M10 17l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: contain; flex-shrink: 0;
}

/* =========================================
   FOOTER FEATURES BANNER
   ========================================= */
.features-banner {
    background: white; border-radius: var(--radius-lg); padding: 25px 40px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
    box-shadow: var(--shadow-sm); margin-bottom: 50px; border: 1px solid var(--border-light);
}
.feature-item { display: flex; align-items: center; gap: 15px; }
.feature-item i { font-size: 2rem; }
.feature-item .text-green { color: #10b981; }
.feature-item .text-yellow { color: #f59e0b; }
.feature-item .text-red { color: var(--primary); }
.feature-item h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.feature-item p { font-size: 0.85rem; color: var(--text-gray); }

/* =========================================
   MODALES (LIGEROS Y MODERNOS)
   ========================================= */
.dir-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    display: none; justify-content: center; align-items: center; z-index: 3000;
    opacity: 0; transition: opacity 0.3s ease;
}
.dir-modal-overlay.active { display: flex; opacity: 1; }

.dir-modal-content {
    background-color: var(--bg-card); padding: 30px 30px 25px; border-radius: 24px;
    width: 90%; max-width: 400px; box-shadow: var(--shadow-lg);
    transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; color: var(--text-dark);
}
.dir-modal-overlay.active .dir-modal-content { transform: translateY(0) scale(1); opacity: 1; }

.dir-close-modal {
    position: absolute; top: 15px; right: 15px; background: #f1f5f9; border: none;
    border-radius: 50%; color: var(--text-gray); width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: var(--transition);
}
.dir-close-modal:hover { background: #e2e8f0; color: var(--text-dark); }

/* Business Modal specific */
.business-profile { margin-top: 50px; }
.dir-modal-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; text-align: center; }
.dir-modal-logo {
    width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
    border: 4px solid white; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: -90px; margin-bottom: 15px; background: white;
}
.dir-modal-title { font-size: 1.4rem; font-weight: 800; margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dir-modal-info { text-align: center; margin-bottom: 25px;}
.dir-modal-info p.desc { font-size: 0.95rem; color: var(--text-gray); line-height: 1.5; margin: 0 0 15px 0; }
.tags-container { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;}
.meta-tag {
    display: inline-flex; align-items: center; background: #f1f5f9; padding: 6px 12px;
    border-radius: 50px; font-size: 0.8rem; color: var(--text-dark); font-weight: 500;
}
.meta-tag i { color: var(--primary); margin-right: 6px; }

.dir-modal-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dir-modal-buttons a {
    display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
    padding: 12px 10px; border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 600; color: white; transition: var(--transition);
}
.dir-modal-buttons a:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 4px 10px rgba(0,0,0,0.15);}
.btn-dir-whatsapp { background-color: #25D366; } 
.btn-dir-call { background-color: #3B82F6; } 
.btn-dir-gps { background-color: #F59E0B; color: #fff !important; } 
.btn-dir-facebook { background-color: #1877F2; } 
.btn-dir-instagram { background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); } 
.btn-dir-tiktok { background-color: #000000; } 
.btn-dir-store { background: linear-gradient(135deg, #8E2DE2, #4A00E0); } 
.btn-dir-web { background-color: #10B981; }

/* ESTILOS DEL FORMULARIO DE SUBIDA */
.upload-form { max-height: 90vh; overflow-y: auto; max-width: 500px; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-dark); font-weight: 600; }
.form-control {
    width: 100%; padding: 12px; background-color: #f8fafc; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); color: var(--text-dark); font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); background: white; }
input[type="file"] { padding: 9px; font-size: 0.85rem; background: white;}
input[type="file"]::-webkit-file-upload-button {
    background-color: #f1f5f9; border: 1px solid var(--border-light); color: var(--text-dark);
    padding: 6px 12px; border-radius: 6px; cursor: pointer; margin-right: 10px; transition: 0.3s; font-weight: 500;
}
input[type="file"]::-webkit-file-upload-button:hover { background-color: var(--primary); border-color: var(--primary); color: white;}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 900px) {
    .search-pill { flex-direction: column; border-radius: 20px; padding: 15px; gap: 15px; }
    .divider { width: 100%; height: 1px; margin: 0; }
    .search-input-group { width: 100%; }
    .btn-search { width: 100%; }
    .hero-content h1 { font-size: 2.5rem; }
    .advanced-filters { flex-direction: column; border-radius: 20px; width: 100%; }
    .features-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .nav-links { display: none; }
    .hero-section { padding-top: 100px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
