/*
Theme Name: Restaurantes Crevillente
Description: Theme profesional para directorio de restaurantes en Crevillente con compatibilidad completa con WP Import Export Lite
Version: 1.0
Author: WordPress Developer
*/

/* Este archivo es requerido por WordPress para reconocer el theme */

/* Estilos base para el tema */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

/* Contenedores básicos */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Enlaces */
a {
    color: #3b82f6;
    text-decoration: none;
}

a:hover {
    color: #1d4ed8;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Botones básicos */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    color: white;
}

/* Grid básico */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Clases de utilidad básicas */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

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

.p-4 {
    padding: 1rem;
}

.bg-white {
    background-color: white;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.rounded {
    border-radius: 0.5rem;
}

/* Logo Personalizado */
.logo-container {
    max-width: 200px;
    max-height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-block;
    max-width: 100%;
    height: auto;
    line-height: 1;
}

.custom-logo {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Contenedor del logo en el header */
.flex.items-center.space-x-2.py-2.flex-shrink-0 {
    max-height: 60px;
    overflow: hidden;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .logo-container {
        max-width: 150px;
        max-height: 40px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .custom-logo-link {
        max-width: 150px;
    }
}

/* Responsive para tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo-container {
        max-width: 180px;
        max-height: 45px;
    }
    
    .custom-logo {
        max-height: 45px;
    }
    
    .custom-logo-link {
        max-width: 180px;
    }
}

/* Asegurar que el logo se vea bien en el header */
.custom-logo-link img {
    transition: opacity 0.3s ease;
    vertical-align: middle;
}

.custom-logo-link:hover img {
    opacity: 0.8;
}
