.dir-wrapper {
    font-family: 'Inter', sans-serif;
    color: #1e2a3e;
    line-height: 1.5;
    max-width: 1280px;
    margin: 0 auto;
}

.dir-wrapper .page { display: none; animation: fadeIn 0.3s ease; }
.dir-wrapper .page.active-page { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Categorías */
.rubros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.8rem; margin: 2rem 0; }
.rubro-card { background: white; border-radius: 28px; padding: 1.8rem 1rem; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.2s; cursor: pointer; border: 1px solid #e2edf2; }
.rubro-card:hover { transform: translateY(-6px); box-shadow: 0 20px 30px rgba(0,0,0,0.1); }
.rubro-icon { font-size: 3rem; color: #553e7a; margin-bottom: 1rem; }
.rubro-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

/* Empresas Listado */
.empresas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; margin: 2rem 0; }
.empresa-card { background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 5px 12px rgba(0,0,0,0.08); transition: 0.2s; cursor: pointer; }
.empresa-card:hover { transform: scale(1.01); box-shadow: 0 15px 25px rgba(0,0,0,0.12); }
.empresa-img { width: 100%; height: 170px; object-fit: cover; background: #cbd5e1; }
.empresa-info { padding: 1.2rem; }
.empresa-info h3 { margin-bottom: 0.4rem; font-size: 1.3rem; }
.rubro-tag { font-size: 0.75rem; background: #ede7f6; display: inline-block; padding: 0.2rem 0.8rem; border-radius: 20px; color: #553e7a; font-weight: 600; margin-bottom: 0.6rem; }
.btn-ver { margin-top: 0.8rem; background: #e93456; border: none; padding: 0.5rem 1rem; border-radius: 30px; font-weight: 600; cursor: pointer; width: 100%; font-size: 0.85rem; color: white; transition: 0.2s; }
.btn-ver:hover { background: #c72c4a; }

/* Detalle */
.detalle-wrapper { display: flex; flex-wrap: wrap; gap: 2rem; margin: 2rem 0; }
.detalle-main { flex: 2; min-width: 260px; }
.detalle-sidebar { flex: 1; min-width: 260px; background: white; border-radius: 28px; padding: 1.5rem; box-shadow: 0 5px 12px rgba(0,0,0,0.05); height: fit-content; }
.empresa-hero img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 24px; margin: 1rem 0; }
.empresa-galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 1rem; }
.empresa-galeria img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }
.yt-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius:24px; margin:1rem 0;}
.yt-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.seccion-box { background: white; padding: 1.5rem; border-radius: 24px; margin-bottom: 1.5rem; border: 1px solid #eef2f5; }
.seccion-box h3 { color: #553e7a; margin-bottom: 10px; }
.review-item { border-bottom: 1px solid #e2e8f0; padding: 1rem 0; }
.stars i { color: #f5b042; margin-right: 2px; }

/* Formularios */
.form-ui input, .form-ui textarea, .form-ui select { width: 100%; padding: 0.7rem; margin: 0.5rem 0; border: 1px solid #cbd5e1; border-radius: 18px; font-family: inherit; }
.btn-enviar { background: #553e7a; color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 30px; font-weight: bold; cursor: pointer; transition: 0.2s; width:100%; }
.btn-enviar:hover { background: #3f2c5e; }
.btn-enviar.alt { background: #e93456; }
.btn-enviar.alt:hover { background: #c72c4a; }

/* Sidebar */
.sidebar-item { margin-bottom: 1.8rem; }
.sidebar-item i { width: 28px; color: #553e7a; }
.rango-precio { font-weight: bold; background: #fce4ec; padding: 0.3rem 1rem; border-radius: 50px; color: #a12140; }
.volver-btn { background: none; border: none; color: #553e7a; font-weight: bold; cursor: pointer; margin-bottom: 1rem; font-size: 1rem; }
.volver-btn:hover { text-decoration: underline; }

/* Estilos para el sistema de estrellas interactivo */
.star-rating-ui {
    font-size: 1.8rem;
    cursor: pointer;
    margin: 10px 0;
    display: inline-block;
}
.star-rating-ui i {
    color: #cbd5e1;
    transition: color 0.2s;
    margin-right: 5px;
}
.star-rating-ui i:hover {
    transform: scale(1.1);
}