/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5490;
    --secondary-color: #0d3b66;
    --accent-color: #f4a261;
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
    --highlight-color: #fff9e6;
    --destacada-bg: #fffbf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Intro Section */
.intro {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.intro p {
    margin-bottom: 1rem;
    text-align: justify;
}

.intro p:last-child {
    margin-bottom: 0;
}

.intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Filtros Section */
.filtros-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filtros-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.filtros-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.filtros-opciones {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.filtros-opciones label {
    font-weight: 500;
    color: var(--text-color);
}

.filtro-select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

/* Empresas Section */
.empresas-section {
    margin-bottom: 3rem;
}

.empresas-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-color);
}

/* Grid de empresas */
.empresas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Empresa Card */
.empresa-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.empresa-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Destacada */
.empresa-destacada {
    background: var(--destacada-bg);
    border: 2px solid var(--accent-color);
}

.destacada-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Imagen empresa */
.empresa-imagen {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-color);
}

.empresa-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Info empresa */
.empresa-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.empresa-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.categoria {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.descripcion {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Rating */
.rating {
    color: #f39c12;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.rating-number {
    color: var(--text-color);
    font-weight: 700;
    margin-left: 0.5rem;
}

.no-rating {
    color: #999;
    font-size: 0.9rem;
}

.num-valoraciones {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Detalles empresa */
.empresa-detalles {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.9rem;
}

.empresa-detalles p {
    margin-bottom: 0.75rem;
}

.empresa-detalles p:last-child {
    margin-bottom: 0;
}

.empresa-detalles strong {
    color: var(--primary-color);
    font-weight: 600;
}

.empresa-detalles a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.empresa-detalles a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.horario, .ubicacion {
    line-height: 1.6;
}

/* Botones de contacto */
.empresa-botones {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-web {
    background: var(--primary-color);
    color: white;
}

.btn-web:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-maps {
    background: #34a853;
    color: white;
}

.btn-maps:hover {
    background: #2d8e47;
    transform: translateY(-2px);
}

.btn-phone {
    background: var(--accent-color);
    color: white;
}

.btn-phone:hover {
    background: #e89451;
    transform: translateY(-2px);
}

/* Contenido SEO */
.seo-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.seo-content h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

.seo-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1200px) {
    .empresas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .empresas-grid {
        grid-template-columns: 1fr;
    }
    
    .filtros-opciones {
        grid-template-columns: 1fr;
    }
    
    .filtros-opciones label {
        margin-top: 0.5rem;
    }
    
    .empresa-imagen {
        height: 180px;
    }
    
    .empresa-botones {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .empresa-info h3 {
        font-size: 1.1rem;
    }
    
    .empresa-imagen {
        height: 150px;
    }
}

/* Utilidades */
.oculto {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}
