:root {
    --primary: #fe5f00;
    --primary-dark: #cc4a00;
    --gold: #d4af37; /* Dorado elegante */
    --light-bg: #fffbf7;
    --white: #ffffff;
    --text: #2c2c2c;
    --border-radius: 8px;
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--text);
    /* Fondo Navideño Elegante */
    background: radial-gradient(circle at top, #ff8c42, #fe5f00, #a63e00);
    min-height: 100vh;
}

.snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgdmlld0JveD0iMCAwIDUwIDUwIj48Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSIxLjUiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuNSIvPjwvc3ZnPg==');
    animation: snow 20s linear infinite;
    z-index: 0;
}
@keyframes snow { from { background-position: 0 0; } to { background-position: 0 500px; } }

/* === CONTENEDORES === */
/* Contenedor normal (Formulario) */
.container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 40px auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-top: 5px solid var(--gold);
}

/* Contenedor Administrativo (Ancho completo) */
.admin-container {
    position: relative;
    z-index: 10;
    max-width: 1200px !important; /* Fuerza el ancho */
    width: 95%;
    margin: 40px auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.logo-container { text-align: center; margin-bottom: 30px; }
.logo-container img { max-width: 180px; }

/* Tipografía */
h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 2em;
    margin: 0 0 10px 0;
}
.step-header { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.step-header p { margin: 0; color: #777; font-style: italic; }

h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
    display: inline-block;
    margin-top: 0;
}

.ornament { color: var(--gold); margin-right: 5px; }

/* Inputs */
label {
    display: block;
    margin: 20px 0 8px;
    font-weight: 700;
    color: #444;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    background: #fafafa;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 95, 0, 0.1);
}

/* === MENU CARDS NUEVO DISEÑO === */
.menu-selection-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start; /* Alineación superior */
}

.menu-card {
    flex: 1;
    min-width: 300px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.menu-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: var(--gold); }
.menu-card.selected {
    border: 2px solid var(--primary);
    background-color: #fffaf5;
}

.card-ornament { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gold); }

.menu-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 1.5em;
    margin-top: 10px;
    margin-bottom: 5px;
}

.price-tag {
    color: var(--gold);
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.menu-card input[type="radio"] { position: absolute; top: 20px; right: 20px; width: 20px; height: 20px; accent-color: var(--primary); }

/* Listas Detalladas dentro de las Cards */
.menu-details-list .menu-cat {
    font-weight: bold;
    color: #444;
    margin: 10px 0 5px 0;
    font-size: 0.95em;
    text-transform: uppercase;
}

.menu-details-list ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 0.9em;
    list-style-type: square;
}

.menu-details-list li {
    margin-bottom: 3px;
    line-height: 1.4;
}

/* === ADMIN ESTILOS === */
table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; }
th, td { padding: 12px; border-bottom: 1px solid #ddd; text-align: left; }
th { background: var(--primary); color: white; }
tr:hover { background-color: #f9f9f9; }

/* Status Badges */
.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.85em; font-weight: bold; display:inline-block; }
.status-Pendiente { background: #ffeeba; color: #856404; }
.status-Cotizado { background: #d4edda; color: #155724; }

/* Quote Builder */
.quote-builder { border: 1px solid #ddd; padding: 20px; border-radius: 8px; margin-top: 20px; background: #fff; }
.line-item { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; padding: 10px; border-bottom: 1px solid #eee; align-items: start; }
.line-comment { grid-column: 1 / -1; margin-top: 5px; }
.totals-area { text-align: right; font-size: 1.2em; font-weight: bold; margin-top: 20px; padding: 20px; background: var(--light-bg); border-radius: 8px; }

/* Checkboxes Elegantes */
.category-section { margin-bottom: 30px; }
.checkbox-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.checkbox-item { display: flex; align-items: center; background: #fff; padding: 12px; border: 1px solid #eee; border-radius: 4px; transition: 0.2s; }
.checkbox-item:hover { border-color: var(--gold); background: #fffbf0; }
.checkbox-item input { width: auto; margin-right: 12px; accent-color: var(--primary); }
.checkbox-item label { margin: 0; font-weight: normal; cursor: pointer; text-transform: none; color: #555; }

/* Botones */
.btn-group { margin-top: 40px; display: flex; justify-content: space-between; }
button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 5px 15px rgba(254, 95, 0, 0.3);
}
button:hover { background: var(--primary-dark); transform: translateY(-2px); }
button.secondary { background: transparent; color: #777; box-shadow: none; border: 1px solid #ccc; }
button.secondary:hover { background: #eee; color: #333; }
.action-btn { background: #007bff; padding: 5px 10px; font-size: 12px; box-shadow: none; border-radius: 4px; }
.delete-btn { background: #dc3545; padding: 5px 10px; font-size: 12px; margin-left: 5px; box-shadow: none; border-radius: 4px; }

/* Utilidades */
.step { display: none; animation: fadeIn 0.6s ease-out; }
.step.active { display: block; }
.hidden { display: none !important; }
.separator { height: 1px; background: #eee; margin: 30px 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade { animation: fadeIn 0.4s ease-in-out; }