* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f0e8;
    color: #4a3728;
}

/* Header */
header {
    background: #6f4e37;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-buttons a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-login {
    background: #4CAF50;
}

.btn-register {
    background: #2196F3;
}

.btn-dashboard {
    background: #ff9800;
}

.btn-logout {
    background: #f44336;
}

.btn-volver {
    background: #ff9800;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* Grid de cafeterías */
.cafeterias-grid, .productos-grid {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.cafeteria-card, .producto-detalle {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    padding: 1rem;
    text-align: center;
}

.cafeteria-card:hover {
    transform: translateY(-5px);
}

.cafe-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.cafe-logo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.ubicacion, .tipo-cafe {
    color: #666;
    margin: 0.5rem 0;
}

.btn-ver {
    display: inline-block;
    background: #6f4e37;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

/* Formularios */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-container button {
    width: 100%;
    padding: 0.75rem;
    background: #6f4e37;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Dashboard */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #6f4e37;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.info-section, .productos-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.add-producto {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.lista-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.producto-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
}

.producto-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.precio {
    color: #4CAF50;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.producto-acciones {
    margin-top: 0.5rem;
}

.producto-acciones button,
.producto-acciones a {
    margin: 0 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.edit-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.cafeteria-info {
    text-align: center;
    margin-bottom: 2rem;
}

.precio-producto {
    font-size: 1.3rem;
    color: #4CAF50;
    font-weight: bold;
    margin-top: 0.5rem;
}

.sin-productos {
    text-align: center;
    color: #999;
    padding: 2rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cafeterias-grid, .productos-grid {
        grid-template-columns: 1fr;
    }
}