/* ==========================================
   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;
}

/* ==========================================
   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;
}

/* ==========================================
   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: 450px;
    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; }

/* Comentarios */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--light-color);
}

.comments-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.comment-form {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    background: var(--white);
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
}

.comment-item strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 4px;
}

.comment-item p {
    font-size: 0.95rem;
    color: #444;
}

.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;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .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: 1fr;
    }
}