/* ==========================================
   1. VARIABLES GLOBALES Y REINICIO
   ========================================== */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --white: #ffffff;
}

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

body {
    color: var(--dark-color);
    background-color: var(--white);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* la barra de arriba no tapa el título de la sección */
}

/* ==========================================
   2. NAVEGACIÓN Y ENCABEZADO
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span:first-child {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #e05624;
}

/* ==========================================
   3. SECCIÓN HERO (PORTADA INICIO)
   ========================================== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url(/images/parque_bolivar.webp);
    background-size: cover;
    background-position: center;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.search-box {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-box input {
    padding: 12px 20px;
    width: 350px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    padding: 12px 24px;
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.search-results {
    max-width: 560px;
    margin: 12px auto 0;
    background: var(--white);
    color: var(--dark-color);
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    max-height: 280px;
    overflow-y: auto;
}

.search-results[hidden] {
    display: none;
}

.search-results a,
.search-results .search-empty {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eee;
}

.search-results a:last-child,
.search-results .search-empty {
    border-bottom: none;
}

.search-results a:hover,
.search-results a:focus {
    background: var(--light-color);
    outline: none;
}

.search-results small {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.search-results .search-empty button {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* ==========================================
   4. SECCIONES GENERALES Y TARJETAS
   ========================================== */
.section {
    padding: 60px 8%;
    text-align: center;
}

.subtitle {
    color: #666;
    margin-bottom: 40px;
}

.bg-light {
    background-color: var(--light-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card, .directory-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s;
}

.card:hover, .directory-card:hover {
    transform: translateY(-5px);
}

.card-tag {
    display: inline-block;
    background: #ffe3d8;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* Corrección de desplazamiento para menús fijos / pegajosos */
section[id],
article[id] {
    scroll-margin-top: 60px; /* Ajusta según el alto de tu barra de navegación */
}

/* ==========================================
   5. TARJETAS DE BLOG EN INICIO
   ========================================== */
.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 8px;
}

.blog-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.blog-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* ==========================================
   6. EVENTOS
   ========================================== */
.events-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.event-date {
    background: var(--light-color);
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    margin-right: 20px;
}

.event-date .day {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    color: var(--secondary-color);
}

.event-date .month {
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================
   7. MODAL REGISTRO
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: var(--dark-color);
}

.modal-desc {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #e05624;
}

/* ==========================================
   8. ESTILOS PÁGINA DE ARTÍCULO (BLOG DETAIL)
   ========================================== */
.article-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 25px;
}

.article-header h1 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin: 15px 0 10px 0;
    line-height: 1.3;
}

.article-featured-image {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.article-body h2 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 30px 0 10px 0;
}

.article-body p {
    margin-bottom: 20px;
}

/* Compartir */
.share-section {
    margin: 40px 0;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    text-align: center;
}

.share-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-share {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.btn-share:hover { opacity: 0.9; }
.share-wa { background-color: #25D366; }
.share-fb { background-color: #1877F2; }
.share-tw { background-color: #000000; }

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ==========================================
   9. ESTILOS PÁGINA DE NEGOCIO (NEGOCIO.HTML)
   ========================================== */
.business-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px 8%;
    color: var(--white);
}

.business-hero-content h1 {
    font-size: 2.2rem;
    margin: 8px 0;
}

.business-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.business-block {
    margin-bottom: 35px;
}

.business-block h2 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 6px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.features-list li {
    background: var(--light-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Tarjeta Lateral del Negocio */
.contact-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 90px;
}

.contact-card h3 {
    margin-bottom: 10px;
}

.price-range {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
}

.btn-whatsapp {
    display: block;
    background-color: #25D366;
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.btn-call {
    display: block;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.btn-whatsapp:hover, .btn-call:hover {
    opacity: 0.9;
}

.divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.schedule-list {
    list-style: none;
    font-size: 0.88rem;
}

.schedule-list li {
    margin-bottom: 6px;
}

.schedule-list span {
    font-weight: 600;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================
   10. PIE DE PÁGINA Y RESPONSIVO
   ========================================== */
footer {
    text-align: center;
    padding: 20px;
    background: var(--dark-color);
    color: var(--white);
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    font-size: 1.4rem;
    line-height: 1;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--dark-color);
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0.8rem 4%;
    }

    .logo {
        font-size: 1.25rem;
        margin-right: auto;
    }

    .navbar .btn-primary {
        order: 2;
        padding: 8px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .menu-toggle {
        display: block;
        order: 3;
        padding: 4px 10px;
    }

    .navbar nav {
        display: none;
        order: 4;
        width: 100%;
    }

    .navbar nav.abierto {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li a {
        display: block;
        padding: 12px 4px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }

    .article-header h1 {
        font-size: 1.7rem;
    }

    .article-featured-image {
        height: 240px;
    }

    .business-container {
        grid-template-columns: minmax(0, 1fr);
        padding: 30px 5%;
    }

    .map-container iframe {
        width: 100%;
    }
}

/* ==========================================
   11. FORMULARIOS DE NEGOCIOS Y DIRECTORIO
   ========================================== */
.plan-opciones { border: none; padding: 0; }
.plan-opciones legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.plan-opcion {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    text-align: left;
}
.plan-opcion:has(input:checked) { border-color: var(--primary-color); background: #fff6f2; }
.plan-opcion input { width: auto !important; margin-top: 4px; }
.plan-opcion strong { display: block; font-size: 0.95rem; }
.plan-opcion small { display: block; color: #666; font-size: 0.8rem; line-height: 1.35; }

.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: #555; margin: 10px 0 14px; text-align: left; }
.form-check input { width: auto; margin-top: 3px; }

.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.registro-error { background: #fdecea; color: #8a1f17; padding: 10px 12px; border-radius: 6px; font-size: 0.88rem; margin-bottom: 12px; text-align: left; }
.registro-exito { text-align: center; }
.registro-exito p { margin: 10px 0 18px; color: #555; }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.filtro { padding: 6px 14px; border: 1px solid #ccc; border-radius: 999px; text-decoration: none; color: var(--dark-color); font-size: 0.88rem; }
.filtro.activo, .filtro:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

.negocio-card { display: block; background: var(--white); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 4px 15px rgba(0,0,0,0.06); text-align: left; transition: transform 0.3s; }
.negocio-card:hover { transform: translateY(-5px); }
.negocio-card-img { height: 170px; background-size: cover; background-position: center; background-color: #ddd; }
.negocio-card-body { padding: 18px; }
.negocio-card-body h3 { margin-bottom: 6px; }
.negocio-card-body p { font-size: 0.9rem; color: #555; }
.negocio-destacado { float: right; color: #b45309; font-size: 0.78rem; font-weight: 600; }

.business-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.business-gallery img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; display: block; }

.completar-wrap { max-width: 720px; margin: 0 auto; padding: 40px 5%; }
.completar-wrap h1 { font-size: 1.8rem; margin-bottom: 6px; }
.completar-wrap .form-group small { color: #666; font-size: 0.8rem; }
.completar-wrap textarea { min-height: 110px; font-family: inherit; }
.fotos-actuales { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fotos-actuales label { font-size: 0.8rem; font-weight: 400; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fotos-actuales img { width: 90px; height: 70px; object-fit: cover; border-radius: 6px; }
.fotos-actuales input { width: auto; }
.aviso { padding: 14px 16px; border-radius: 8px; background: #eef6ff; color: #0b3d6b; margin-bottom: 20px; font-size: 0.92rem; }
.aviso.error { background: #fdecea; color: #8a1f17; }


/* Página de política de datos */
.legal-page { max-width: 780px; margin: 0 auto; padding: 40px 5% 60px; }
.legal-page h1 { font-size: 1.9rem; margin: 18px 0 10px; }
.legal-page h2 { font-size: 1.15rem; margin: 28px 0 8px; color: var(--secondary-color); }
.legal-page p, .legal-page li { margin-bottom: 8px; font-size: 0.95rem; }
.legal-page ul { padding-left: 22px; }
.legal-page .lead { color: #555; }
.legal-meta { color: #777; font-size: 0.85rem; }
.legal-draft { background: #fff3cd; color: #664d03; padding: 12px 14px; border-radius: 8px; font-size: 0.9rem; }
.pendiente { background: #fff3a8; padding: 0 4px; border-radius: 3px; }
footer a { color: inherit; text-decoration: underline; }
.aviso-publico { font-size: 0.85rem; color: #555; background: #f6f6f6; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }

.plan-oferta { display: block; color: #b45309; font-weight: 600; font-size: 0.85rem; margin: 2px 0 4px; }
