/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    /* Paleta de Colores */
    --color-primary: #3D2C24;   /* Marrón Oscuro */
    --color-accent: #C7A768;    /* Dorado/Cobre */
    --color-bg: #F5F5DC;        /* Beige Cremoso */
    --color-bg-alt: #EBEBD0;    /* Beige ligeramente más oscuro */
    --color-text: #2c2c2c;
    --color-white: #ffffff;
    --color-error: #a94442;
    --color-success: #2e7d32;

    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;

    /* UI */
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* =========================================
   COMPONENTES COMUNES
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

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

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

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section__title--light {
    color: var(--color-accent);
}

.separator {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0 auto;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn--primary:hover {
    background-color: #dcb97a;
    transform: translateY(-2px);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: bold;
}

.btn--accent:hover {
    background-color: #fff;
    color: var(--color-primary);
}

.btn--full {
    width: 100%;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    z-index: 1000;
    box-shadow: var(--shadow);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent);
    font-weight: bold;
}

.nav__list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav__link {
    color: var(--color-white);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__link--btn {
    border: 1px solid var(--color-accent);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    color: var(--color-accent);
}

.nav__link--btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0; /* Override */
}

.hero__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 44, 36, 0.6); /* Overlay Marrón */
    z-index: -1;
}

.hero__content {
    color: var(--color-white);
    z-index: 1;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* =========================================
   MENU TABS
   ========================================= */
.tabs__header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tabs__btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.tabs__btn:hover,
.tabs__btn--active {
    opacity: 1;
    border-bottom-color: var(--color-accent);
}

.tabs__pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tabs__pane--active {
    display: block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-accent);
}

.menu-item__name {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.menu-item__price {
    color: var(--color-accent);
    font-weight: bold;
}

.menu-item__desc {
    font-size: 0.95rem;
    color: #666;
}

/* =========================================
   CAROUSEL
   ========================================= */
.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.carousel__track-container {
    overflow: hidden;
}

.carousel__track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel__slide {
    min-width: 100%;
}

.carousel__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(61, 44, 36, 0.7);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel__btn:hover {
    background: var(--color-accent);
}

.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }

/* =========================================
   EQUIPO
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-content: center;
}

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

.team-card__img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.team-card__name {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.team-card__role {
    color: var(--color-accent);
    font-weight: 500;
}

/* =========================================
   CONTACTO / FORMULARIO
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-text {
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--color-text);
}

.form__group {
    margin-bottom: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.form__input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(199, 167, 104, 0.2);
}

.form__input--error {
    border-color: var(--color-error);
}

.form__feedback {
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
    min-height: 24px;
}

.form__feedback--success {
    color: var(--color-success);
}

.form__feedback--error {
    color: var(--color-error);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .nav__list {
        display: none; /* Simplificado para la versión móvil */
    }
}