:root {
    --bg: #fafafa;
    --text: #333;
    --border: #111;
    --primary: #111;
    --shadow: 4px 4px 0px #111;
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}
.nav-link:hover { opacity: 0.7; }
.nav-brand {
    font-family: 'Caveat', cursive;
    color: #666;
    font-size: 18px;
}

.dir-header {
    text-align: center;
    padding: 20px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}
.dir-header h1 {
    font-family: 'Caveat', cursive;
    font-size: 48px;
    margin: 0 0 10px;
    color: var(--primary);
}
.dir-header p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}
.filter-container {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.filter-container select {
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px 30px;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Tarjeta Neobrutalism Style */
.card {
    background: #fff;
    border: 2px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #111;
}
.card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.card-cat {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.card-share {
    color: #888;
    cursor: pointer;
    font-size: 20px;
}
.card-identity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}
.card-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.card-location {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 3px;
}
.card-location i { font-size: 14px; color: #888; }

.card-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
    flex: 1;
}

.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.btn-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: 0.2s;
    background: #fff;
    color: var(--primary);
}
.btn-app { color: #10b981; } /* Green for WhatsApp */
.btn-social { color: #3b82f6; } /* Blue for Social Media */
.btn-app i, .btn-social i { font-size: 16px; }
.btn-card:hover { background: #f5f5f5; }

/* Banner abajo */
.bottom-banner {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
.banner-content {
    background: #fff;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
}
.banner-content h2 { margin: 0 0 15px; font-size: 26px; }
.banner-content p { font-size: 15px; color: #555; margin-bottom: 20px; line-height: 1.6; }
.btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
    background: #fff;
    padding: 12px 25px;
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0px var(--primary);
    transition: 0.2s;
}
.btn-banner:hover { box-shadow: 4px 4px 0px var(--primary); transform: translate(-2px, -2px); }

/* --- REGISTRO DIRECTORIO --- */
.register-container { max-width: 600px; margin: 0 auto; padding: 0 20px 40px; }
.register-form { background: white; padding: 25px; border: 2px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 700; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select { padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; outline: none; transition: 0.2s; background: #fafafa; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); background: #fff;}
.flex-row { display: flex; gap: 20px; align-items: flex-start; }
@media(max-width: 500px) { .flex-row { flex-direction: column; } }
.flex-col { display: flex; flex-direction: column; gap: 15px; }

/* Upload box */
.upload-container { width: 120px; height: 120px; border: 2px dashed #bbb; border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: #fafafa; cursor: pointer; flex-shrink: 0; transition: border-color 0.2s;}
.upload-container:hover { border-color: var(--primary); background: #f0f0f0; }
.upload-label { position: absolute; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #888; font-size: 12px; gap: 5px; cursor: pointer; font-weight: 600;}
.upload-label i { font-size: 32px; color: var(--primary); }
.upload-container input[type="file"] { position: absolute; top:0; left:0; width:100%; height:100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload-container img { width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.char-counter { text-align: right; font-size: 12px; color: #888; margin-top: -3px; font-weight: 600;}
.char-counter.limit { color: #e74c3c; }
.desc-error { font-size: 12px; color: #e74c3c; font-weight: 700; margin-top: 4px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 6px 10px; }

.form-actions { margin-top: 10px; }
.btn-submit { width: 100%; padding: 14px; background: var(--primary); color: white; border: 2px solid var(--border); border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: var(--shadow); transition: 0.2s; }
.btn-submit:disabled { background: #ccc; border-color: #999; box-shadow: none; color: #666; cursor: not-allowed; transform: none;}
.btn-submit:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px #111; }

.form-feedback { padding: 15px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 14px; border: 2px solid; }
.form-feedback.success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.form-feedback.error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.hidden { display: none !important; }

/* Pauta Banner */
.pauta-banner { background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 15px; color: var(--primary); box-shadow: var(--shadow); margin-bottom: 30px;}
.pauta-icon { font-size: 40px; color: #10b981; }
.pauta-texto { flex: 1; }
.pauta-texto strong { display: block; font-size: 16px; margin-bottom: 4px; font-weight: 800;}
.pauta-texto p { margin: 0; font-size: 14px; color: #555; }
.btn-pauta-wa { background: #10b981; color: #fff; padding: 10px 20px; border: 2px solid var(--border); border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; transition: 0.2s; white-space: nowrap; box-shadow: 2px 2px 0px var(--border);}
.btn-pauta-wa:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0px var(--border); }
@media(max-width: 500px) { .pauta-banner { flex-direction: column; text-align: center; } .btn-pauta-wa { width: 100%; text-align: center; box-sizing: border-box;} }
