/* ============================================================
   Plaza Bar Cafe - Estilos Web
   Mobile-First Design
   ============================================================ */

/* ==================== VARIABLES ==================== */
:root {
    /* Colores de marca (extraídos del logo Plaza Bar Cafe) */
    --brand-primary: #A64B2A;      /* Terracota del logo */
    --brand-primary-dark: #8B3D22;
    --brand-primary-light: #C06B4A;
    --brand-secondary: #5C4033;    /* Marrón cálido */
    --brand-cream: #F5E6D3;        /* Crema del fondo del logo */
    --brand-gold: #D4AF37;

    /* Colores de texto */
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
    --text-light: #8A8A8A;
    --text-white: #FDFBF7;

    /* Fondos */
    --bg-primary: #FFFFFF;
    --bg-secondary: var(--brand-cream);
    --bg-dark: #2C2C2C;

    /* Bordes */
    --border-color: #E5E5E5;
    --border-radius: 8px;
    --border-radius-lg: 16px;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);

    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;

    /* Tipografia */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Navegacion mobile */
    --nav-mobile-height: 70px;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--nav-mobile-height);  /* Espacio para nav mobile */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* ==================== TIPOGRAFIA ==================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-primary-dark);
}

/* ==================== HEADER DESKTOP ==================== */
.header-desktop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

@media (min-width: 768px) {
    .header-desktop {
        display: block;
    }

    body {
        padding-top: 80px;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-desktop a {
    font-weight: 500;
    color: var(--text-dark);
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

.btn-reservar {
    background: var(--brand-primary) !important;
    color: var(--text-white) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: var(--border-radius);
    border: none !important;
    font-weight: 600;
}

.btn-reservar:hover {
    background: var(--brand-primary-dark) !important;
}

/* ==================== NAVEGACION MOBILE (Bottom) ==================== */
.nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-mobile-height);
    background: var(--bg-primary);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none;
    }
}

.nav-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    color: var(--text-medium);
    text-decoration: none;
    min-width: 80px;
    transition: all 0.2s;
}

.nav-mobile-item.active,
.nav-mobile-item:hover {
    color: var(--brand-primary);
}

.nav-mobile-item .nav-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.nav-mobile-item .nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* CTA central destacado */
.nav-mobile-cta {
    background: var(--brand-primary);
    color: var(--text-white) !important;
    border-radius: var(--border-radius-lg);
    margin: 0 var(--space-sm);
    min-width: 90px;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

.nav-mobile-cta:hover {
    background: var(--brand-primary-dark);
    color: var(--text-white) !important;
}

/* ==================== CONTENIDO PRINCIPAL ==================== */
.main-content {
    min-height: 100vh;
}

/* ==================== SECCIONES ==================== */
.section {
    padding: var(--space-xxl) var(--space-lg);
}

.section-alt {
    background: var(--bg-secondary);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title h2 {
    margin-bottom: var(--space-sm);
}

.section-title p {
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--text-white);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl);
    max-width: 800px;
}

.hero h1 {
    color: var(--text-white);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--brand-primary-dark);
    color: var(--text-white);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--brand-primary);
}

.btn-lg {
    padding: var(--space-lg) var(--space-xxl);
    font-size: 1.1rem;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    margin-bottom: var(--space-sm);
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* ==================== GRID ==================== */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==================== FORMULARIOS ==================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==================== FLASH MESSAGES ==================== */
.flash-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1001;
    max-width: 400px;
}

@media (min-width: 768px) {
    .flash-container {
        top: 100px;
    }
}

.flash {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: #D4EDDA;
    color: #155724;
}

.flash-error {
    background: #F8D7DA;
    color: #721C24;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
}

.flash-close:hover {
    opacity: 1;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-xxl) var(--space-lg) var(--space-lg);
    margin-bottom: var(--nav-mobile-height);
}

@media (min-width: 768px) {
    .footer {
        margin-bottom: 0;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.footer-section h4 {
    color: var(--brand-gold);
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
}

.footer-section p {
    margin-bottom: var(--space-sm);
    color: rgba(255,255,255,0.8);
}

.footer-section a {
    color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
    color: var(--text-white);
}

.footer-section .day {
    display: inline-block;
    width: 100px;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* ==================== UTILIDADES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-lg); }
.mt-3 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-lg); }
.mb-3 { margin-bottom: var(--space-xl); }
