/* ============================================
   La Terraza - Plantilla Bar/Restaurante
   Estilo: Creativo, moderno, con personalidad
   Paleta WebCharra: #2B2B2B, #8D99AE, #F4F4F4, #FF233C, #D90429
   ============================================ */

/* --- Reset y base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #2B2B2B;
    color: #F4F4F4;
    line-height: 1.6;
}

/* --- Utilidades --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-oscura {
    background-color: #1a1a1a;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #FF233C;
}

.section-subtitle {
    text-align: center;
    color: #8D99AE;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 35, 60, 0.35);
}

.btn-primary {
    background-color: #D90429;
    color: #fff;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Navegación --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(43, 43, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FF233C;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #F4F4F4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #FF233C;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #2B2B2B 0%, #1a1a1a 50%, #2B2B2B 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 35, 60, 0.08) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #FF233C;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1.4rem;
    color: #8D99AE;
    margin-bottom: 2.5rem;
    font-style: italic;
}

/* --- Historia --- */
.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.historia-texto p {
    margin-bottom: 1.25rem;
    color: #ccc;
    font-size: 1.05rem;
}

/* --- Carta --- */
.carta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plato-card {
    background-color: #2B2B2B;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 35, 60, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.plato-card:hover {
    transform: translateY(-5px);
    border-color: #FF233C;
}

.plato-info {
    padding: 1.5rem;
}

.plato-info h3 {
    color: #FF233C;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.plato-info p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.plato-precio {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F4F4F4;
}

/* --- Galería --- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* --- Contacto --- */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contacto-info h3 {
    color: #FF233C;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.contacto-info h3:first-child {
    margin-top: 0;
}

.contacto-info p {
    color: #ccc;
}

.contacto-info a {
    color: #FF233C;
    text-decoration: none;
}

.contacto-info a:hover {
    text-decoration: underline;
}

.horarios-list {
    list-style: none;
    color: #ccc;
}

.horarios-list li {
    padding: 0.25rem 0;
}

.horarios-list li span {
    color: #F4F4F4;
    font-weight: 600;
}

/* --- Formulario de reserva --- */
.reserva-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 35, 60, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8D99AE;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #2B2B2B;
    border: 1px solid #444;
    border-radius: 10px;
    color: #F4F4F4;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF233C;
}

.form-group textarea {
    resize: vertical;
}

/* --- Placeholders de imagen --- */
.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
    padding: 1rem;
}

.placeholder-grande {
    width: 100%;
    height: 300px;
    border-radius: 16px;
}

.placeholder-media {
    width: 100%;
    height: 220px;
    border-radius: 12px;
}

.placeholder-pequena {
    width: 100%;
    height: 180px;
}

/* --- Chips de categorías --- */
.carta-chips {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #FF233C;
    background-color: transparent;
    color: #F4F4F4;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background-color: rgba(255, 35, 60, 0.15);
}

.chip.active {
    background-color: #FF233C;
    color: #fff;
}

/* --- Footer --- */
.footer {
    background-color: #111;
    text-align: center;
    padding: 2rem 0;
    color: #8D99AE;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .historia-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }

    .reserva-form {
        padding: 1.5rem;
    }
}
