/* ===== RESET Y VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #C0392B;
    --primary-dark: #A93226;
    --success: #1D9E75;
    --success-dark: #17865E;
    --dark: #2C2C2C;
    --gray: #6C757D;
    --light-gray: #F8F9FA;
    --border: #DEE2E6;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--dark);
    background: var(--light-gray);
    font-size: 17px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    gap: 10px;
}

.logo h1 {
    font-size: 22px;
    color: var(--primary);
    line-height: 1.2;
}

.logo a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== HAMBURGER MENU ===== */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--dark);
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.main-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: color 0.3s;
    padding: 8px 4px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

/* ===== HERO SECTION ===== */
.hero {
    background: url('/img/hero.jpg') center/cover no-repeat;
    min-height: 380px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0,0,0,0.55);
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 38px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 19px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #C0392B;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    /* Tamaño mínimo para dedos y personas mayores */
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
}

.btn-large {
    padding: 18px 36px;
    font-size: 20px;
}

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

.btn-sm {
    padding: 9px 18px;
    font-size: 15px;
}

.btn-icon {
    font-size: 22px;
    font-weight: bold;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin: 20px;
    font-size: 17px;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEAA7;
}

.alert-danger {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

/* ===== INFO CARDS ===== */
.info-section {
    padding: 40px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 20px;
}

.info-card p {
    font-size: 17px;
}

/* ===== MAPA ===== */
.map-section {
    padding: 40px 0;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

/* ===== CATEGORÍAS (BARRA FIJA) ===== */
.category-bar {
    background: var(--white);
    position: sticky;
    top: 73px;
    z-index: 99;
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 12px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    padding: 12px 22px;
    background: var(--light-gray);
    color: var(--dark);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    min-height: 48px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
}

.category-item:hover,
.category-item.active {
    background: var(--primary);
    color: var(--white);
}

/* ===== PRODUCTOS ===== */
.products-section {
    padding: 30px 20px;
}

.category-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.product-description {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

/* ===== CARRITO FLOTANTE ===== */
.cart-float {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
    min-height: 60px;
    touch-action: manipulation;
}

.cart-float:hover {
    transform: translateX(-50%) scale(1.05);
}

.cart-float-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon {
    font-size: 26px;
}

.cart-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.cart-info strong {
    font-size: 19px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: hidden;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-size: 18px;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none;
}

.modal-content h2 {
    font-size: 26px;
    padding: 20px 25px 15px;
    padding-right: 50px;
}

.modal-content img {
    max-height: 240px;
    width: 100%;
    object-fit: cover;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    font-size: 18px;
    padding: 14px;
    min-height: 52px;
}

.modal-content button {
    font-size: 18px;
    padding: 16px;
    min-height: 54px;
    touch-action: manipulation;
}

.modal-content label {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    touch-action: manipulation;
}

.modal-close:hover {
    color: var(--primary);
    background: var(--light-gray);
}

/* ===== AUTH ===== */
.auth-container {
    max-width: 500px;
    margin: 30px auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 18px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s;
    min-height: 56px;
    touch-action: manipulation;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.auth-form {
    display: none;
    padding: 28px;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 17px;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 17px;
    min-height: 52px;
    transition: border-color 0.2s;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: auto;
    min-height: auto;
    padding: 0;
    border: none;
    vertical-align: middle;
    cursor: pointer;
}

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

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 24px;
    margin-top: 40px;
    font-size: 16px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p:first-child {
    font-size: 72px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

/* ===== GRID DE CATEGORÍAS ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-info {
    padding: 18px;
    text-align: center;
}

.category-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.category-count {
    font-size: 15px;
    color: var(--gray);
    margin: 0;
}

/* ===== STATUS BAR (seguimiento pedido) ===== */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    position: relative;
}

.status-bar::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 4px;
    background: #ddd;
    z-index: 0;
}

.status-bar::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    height: 4px;
    background: #1D9E75;
    z-index: 0;
    width: 0%;
    animation: fillBar 1.2s ease forwards;
}

@keyframes fillBar {
    from { width: 0%; }
    to   { width: var(--progress); }
}

.status-step {
    position: relative;
    text-align: center;
    flex: 1;
    z-index: 1;
}

.status-dot {
    width: 18px;
    height: 18px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 auto 8px;
    position: relative;
}

.status-step.active .status-dot {
    background: #e74c3c;
}

.status-step.active .status-dot::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #e74c3c;
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: pulse 1.5s infinite;
    opacity: 0.6;
}

.status-step.completed .status-dot {
    background: #1D9E75;
}

.status-label {
    font-size: 13px;
    color: #999;
}

.status-step.active .status-label {
    color: #000;
    font-weight: bold;
}

.status-step.completed .status-label {
    color: #1D9E75;
}

@keyframes pulse {
    0%   { transform: scale(1);  opacity: 0.6; }
    70%  { transform: scale(2);  opacity: 0; }
    100% { transform: scale(2);  opacity: 0; }
}

/* ===== RESPONSIVE — TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===== RESPONSIVE — MÓVIL (≤768px) ===== */
@media (max-width: 768px) {
    body {
        font-size: 18px; /* ligeramente más grande para personas mayores */
    }

    .container {
        padding: 0 14px;
    }

    /* --- Header móvil --- */
    .main-header .container {
        padding: 10px 14px;
        flex-wrap: nowrap;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo a img {
        height: 50px !important;
    }

    /* Hamburguesa visible en móvil */
    

    /* Nav se despliega verticalmente */
    .main-nav {
        display: flex;
        flex-direction: column;
        position: static;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 10px;
        font-size: 16px;
        border: none;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    /* --- Hero --- */
    .hero {
        min-height: 260px;
    }

    .hero-overlay {
        min-height: 260px;
        padding: 30px 16px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        font-size: 19px;
        padding: 16px 20px;
    }

    /* --- Categorías --- */
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .category-image {
        height: 120px;
    }

    .category-name {
        font-size: 18px;
    }

    .category-placeholder span {
        font-size: 52px !important;
    }

    /* --- Productos --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .product-image,
    .product-image-placeholder {
        height: 180px;
    }

    .product-name {
        font-size: 21px;
    }

    .product-description {
        font-size: 16px;
    }

    .product-price {
        font-size: 26px;
    }

    .product-info {
        padding: 16px;
    }

    /* Botón añadir grande y fácil de pulsar */
    .product-footer .btn {
        font-size: 17px;
        padding: 14px 18px;
        min-height: 54px;
    }

    /* --- Barra de categorías --- */
    .category-item {
        font-size: 17px;
        padding: 12px 18px;
    }

    /* --- Carrito flotante más grande --- */
    .cart-float {
        bottom: 14px;
        padding: 14px 22px;
        width: calc(100% - 28px);
        max-width: 400px;
    }

    .cart-info strong {
        font-size: 21px;
    }

    /* --- Modal full-width en móvil --- */
    .modal.active {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        border-radius: 18px 18px 0 0;
        max-height: 92vh;
        width: 100%;
        font-size: 17px;
    }

    .modal-content h2 {
        font-size: 22px;
        padding: 18px 20px 12px;
        padding-right: 50px;
    }

    /* --- Formularios más fáciles de rellenar --- */
    .form-group input:not([type="radio"]):not([type="checkbox"]),
    .form-group select,
    .form-group textarea {
        font-size: 18px;
        padding: 15px;
        min-height: 56px;
    }

    .form-group label {
        font-size: 18px;
    }

    .auth-tab {
        font-size: 17px;
    }

    .auth-form {
        padding: 20px 16px;
    }

    /* --- Info cards una columna --- */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .info-card {
        padding: 22px;
    }

    .info-icon {
        font-size: 40px;
    }

    /* --- Status bar pedido --- */
    .status-label {
        font-size: 11px;
    }

    .status-dot {
        width: 14px;
        height: 14px;
    }

    .status-bar::before {
        top: 10px;
    }

    /* --- Botones generales más grandes en móvil --- */
    .btn {
        min-height: 54px;
        font-size: 17px;
    }

    .btn-large {
        font-size: 20px;
        padding: 18px 24px;
    }

    /* Features section */
    .features h2 {
        font-size: 28px !important;
    }

    .feature-icon {
        font-size: 56px !important;
    }

    .feature-card h3 {
        font-size: 22px !important;
    }

    .feature-card p {
        font-size: 17px !important;
    }
}

/* ===== RESPONSIVE — MÓVIL PEQUEÑO (≤400px) ===== */
@media (max-width: 400px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo h1 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    .product-footer {
        flex-direction: column;
        gap: 8px;
    }

    .product-footer .btn {
        width: 100%;
        white-space: normal; /* IMPORTANTE */
    }

    .product-price {
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════
   ESTILOS PARA BUILDER DE PRODUCTOS (ESTILO BURGER KING)
   ═══════════════════════════════════════════════════════ */

.pantalla-builder {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 85vh;
}

.builder-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: white;
}

.builder-progress {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C0392B 0%, #E74C3C 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.builder-titulo {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.builder-paso {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 500;
}

.mitad-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #C0392B;
    margin: 8px 0 0 0;
    padding: 8px 12px;
    background: #FEF6F5;
    border-radius: 8px;
    display: inline-block;
}

.builder-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.builder-footer {
    padding: 16px 20px;
    border-top: 2px solid #f0f0f0;
    background: white;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.builder-footer.confirmacion {
    flex-direction: column;
}

/* ══════════════════════════════════════════════════════
   PANTALLA 1: TAMAÑOS
   ══════════════════════════════════════════════════════ */

.tamanos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.tamano-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tamano-card:hover:not(.deshabilitado) {
    border-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.15);
}

.tamano-card.activo {
    border-color: #C0392B;
    background: #FEF6F5;
}

.tamano-card.deshabilitado {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.tamano-nombre {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.tamano-precio {
    font-size: 24px;
    font-weight: 800;
    color: #C0392B;
}

.solo-recogida-badge {
    font-size: 11px;
    background: #FFA500;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    margin: 8px 0;
    font-weight: 600;
    display: inline-block;
}

.tamano-no-disponible {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 8px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   PANTALLA 2: INGREDIENTES
   ══════════════════════════════════════════════════════ */

.mitad-mitad-box {
    background: linear-gradient(135deg, #f9f4fe 0%, #fff 100%);
    border: 2px solid #d8b5e8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.mitad-mitad-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}

.mitad-mitad-info {
    font-size: 13px;
    color: #7f8c8d;
    margin: 8px 0 0 28px;
}

.ingredientes-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ingredientes-seccion {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 16px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.ingrediente-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.ingrediente-item.sin-ingrediente {
    background: #f9f9f9;
    opacity: 0.7;
}

.ingrediente-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ingrediente-nombre {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.ingrediente-extra {
    font-size: 13px;
    color: #C0392B;
    font-weight: 600;
}

.ingrediente-controles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-ingrediente {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-ingrediente:hover:not(:disabled) {
    border-color: #C0392B;
    color: #C0392B;
}

.btn-ingrediente.activo {
    border-color: #C0392B;
    background: #FEF6F5;
    color: #C0392B;
}

.btn-ingrediente:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ingrediente-opcional {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ingrediente-opcional:hover {
    border-color: #C0392B;
    background: #FEF6F5;
}

.ingrediente-opcional.seleccionado {
    border-color: #C0392B;
    background: #FEF6F5;
}

.ingrediente-opcional .ingrediente-nombre {
    font-size: 14px;
}

.ingrediente-opcional .ingrediente-precio {
    font-size: 14px;
    font-weight: 700;
    color: #C0392B;
}

/* ══════════════════════════════════════════════════════
   PANTALLA 3: EXTRAS Y SALSAS
   ══════════════════════════════════════════════════════ */

.extras-seccion {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.extra-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.extra-card:hover {
    border-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.15);
}

.extra-card.seleccionado {
    border-color: #1D9E75;
    background: #F0FFF6;
}

.extra-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.extra-precio {
    font-size: 16px;
    font-weight: 700;
    color: #C0392B;
}

.extra-check {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1D9E75;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   PANTALLA FINAL: CONFIRMACIÓN
   ══════════════════════════════════════════════════════ */

.resumen-pedido {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.resumen-item:last-child {
    border-bottom: none;
}

.resumen-label {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    flex-shrink: 0;
}

.resumen-valor {
    font-size: 14px;
    color: #2c3e50;
    text-align: right;
    font-weight: 500;
}

.observaciones-box {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.obs-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cantidad-box {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.cantidad-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.btn-cantidad {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #C0392B;
    background: white;
    color: #C0392B;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-cantidad:hover {
    background: #C0392B;
    color: white;
}

.cantidad-valor {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    min-width: 40px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════
   BOTONES DEL FOOTER
   ══════════════════════════════════════════════════════ */

.btn-primario,
.btn-secundario {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex: 1;
}

.btn-primario {
    background: #C0392B;
    color: white;
}

.btn-primario:hover:not(:disabled) {
    background: #A93226;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-primario:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primario.grande {
    font-size: 17px;
    padding: 18px 24px;
    flex: none;
    width: 100%;
}

.btn-secundario {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secundario:hover {
    border-color: #C0392B;
    color: #C0392B;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .builder-header {
        padding: 16px;
    }
    
    .builder-titulo {
        font-size: 19px;
    }
    
    .builder-paso {
        font-size: 13px;
    }
    
    .builder-body {
        padding: 16px;
    }
    
    .tamanos-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .extras-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .ingrediente-controles {
        grid-template-columns: 1fr;
    }
    
    .btn-ingrediente {
        font-size: 14px;
        white-space: normal;
    }
    
    .builder-footer {
        padding: 12px 16px;
    }
    
    .btn-primario,
    .btn-secundario {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .tamanos-grid {
        grid-template-columns: 1fr;
    }
    
    .tamano-nombre {
        font-size: 16px;
    }
    
    .tamano-precio {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════════════════
   BUILDER STYLES — añadir al final de style.css
   ═══════════════════════════════════════════════════════ */

/* Precio en vivo en cabecera del builder */
.precio-en-vivo {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}
.precio-en-vivo strong {
    color: #C0392B;
    font-size: 16px;
}

/* Ingrediente no disponible */
.ingrediente-nodisponible-tag {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}
.ingrediente-item.no-disponible {
    opacity: 0.6;
    background: #f9f9f9;
}

/* Extra/salsa no disponible */
.extra-card.no-disponible {
    opacity: 0.45;
    cursor: not-allowed !important;
    background: #f5f5f5 !important;
    border: 1px dashed #ccc !important;
    pointer-events: none;
}

/* Tamaño deshabilitado */
.tamano-card.deshabilitado {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border: 2px dashed #ddd;
}
.tamano-no-disponible {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}
.solo-recogida-badge {
    font-size: 11px;
    color: #e67e22;
    background: #fff3e0;
    border-radius: 8px;
    padding: 2px 8px;
    margin-top: 4px;
    display: inline-block;
}

/* Resumen total en confirmación */
.resumen-total {
    border-top: 2px solid #eee;
    padding-top: 12px;
    margin-top: 8px;
}

/* Botón grande */
.btn-primario.grande {
    font-size: 16px;
    padding: 14px 24px;
}


/* ===== RESET Y VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #C0392B;
    --primary-dark: #A93226;
    --success: #1D9E75;
    --success-dark: #17865E;
    --dark: #2C2C2C;
    --gray: #6C757D;
    --light-gray: #F8F9FA;
    --border: #DEE2E6;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--dark);
    background: var(--light-gray);
    font-size: 17px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    gap: 10px;
}

.logo h1 {
    font-size: 22px;
    color: var(--primary);
    line-height: 1.2;
}

.logo a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== HAMBURGER MENU ===== */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--dark);
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.main-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: color 0.3s;
    padding: 8px 4px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

/* ===== HERO SECTION ===== */
.hero {
    background: url('/img/hero.jpg') center/cover no-repeat;
    min-height: 380px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0,0,0,0.55);
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 38px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 19px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #C0392B;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    /* Tamaño mínimo para dedos y personas mayores */
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
}

.btn-large {
    padding: 18px 36px;
    font-size: 20px;
}

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

.btn-sm {
    padding: 9px 18px;
    font-size: 15px;
}

.btn-icon {
    font-size: 22px;
    font-weight: bold;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin: 20px;
    font-size: 17px;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEAA7;
}

.alert-danger {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

/* ===== INFO CARDS ===== */
.info-section {
    padding: 40px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 20px;
}

.info-card p {
    font-size: 17px;
}

/* ===== MAPA ===== */
.map-section {
    padding: 40px 0;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

/* ===== CATEGORÍAS (BARRA FIJA) ===== */
.category-bar {
    background: var(--white);
    position: sticky;
    top: 73px;
    z-index: 99;
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 12px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    padding: 12px 22px;
    background: var(--light-gray);
    color: var(--dark);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    min-height: 48px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
}

.category-item:hover,
.category-item.active {
    background: var(--primary);
    color: var(--white);
}

/* ===== PRODUCTOS ===== */
.products-section {
    padding: 30px 20px;
}

.category-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.product-description {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

/* ===== CARRITO FLOTANTE ===== */
.cart-float {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
    min-height: 60px;
    touch-action: manipulation;
}

.cart-float:hover {
    transform: translateX(-50%) scale(1.05);
}

.cart-float-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon {
    font-size: 26px;
}

.cart-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.cart-info strong {
    font-size: 19px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-size: 18px;
    -webkit-overflow-scrolling: touch;
}

.modal-content h2 {
    font-size: 26px;
    padding: 20px 25px 15px;
    padding-right: 50px;
}

.modal-content img {
    max-height: 240px;
    width: 100%;
    object-fit: cover;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    font-size: 18px;
    padding: 14px;
    min-height: 52px;
}

.modal-content button {
    font-size: 18px;
    padding: 16px;
    min-height: 54px;
    touch-action: manipulation;
}

.modal-content label {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    touch-action: manipulation;
}

.modal-close:hover {
    color: var(--primary);
    background: var(--light-gray);
}

/* ===== AUTH ===== */
.auth-container {
    max-width: 500px;
    margin: 30px auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 18px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s;
    min-height: 56px;
    touch-action: manipulation;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.auth-form {
    display: none;
    padding: 28px;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 17px;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 17px;
    min-height: 52px;
    transition: border-color 0.2s;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: auto;
    min-height: auto;
    padding: 0;
    border: none;
    vertical-align: middle;
    cursor: pointer;
}

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

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 24px;
    margin-top: 40px;
    font-size: 16px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p:first-child {
    font-size: 72px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

/* ===== GRID DE CATEGORÍAS ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-info {
    padding: 18px;
    text-align: center;
}

.category-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.category-count {
    font-size: 15px;
    color: var(--gray);
    margin: 0;
}

/* ===== STATUS BAR (seguimiento pedido) ===== */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    position: relative;
}

.status-bar::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 4px;
    background: #ddd;
    z-index: 0;
}

.status-bar::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    height: 4px;
    background: #1D9E75;
    z-index: 0;
    width: 0%;
    animation: fillBar 1.2s ease forwards;
}

@keyframes fillBar {
    from { width: 0%; }
    to   { width: var(--progress); }
}

.status-step {
    position: relative;
    text-align: center;
    flex: 1;
    z-index: 1;
}

.status-dot {
    width: 18px;
    height: 18px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 auto 8px;
    position: relative;
}

.status-step.active .status-dot {
    background: #e74c3c;
}

.status-step.active .status-dot::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #e74c3c;
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: pulse 1.5s infinite;
    opacity: 0.6;
}

.status-step.completed .status-dot {
    background: #1D9E75;
}

.status-label {
    font-size: 13px;
    color: #999;
}

.status-step.active .status-label {
    color: #000;
    font-weight: bold;
}

.status-step.completed .status-label {
    color: #1D9E75;
}

@keyframes pulse {
    0%   { transform: scale(1);  opacity: 0.6; }
    70%  { transform: scale(2);  opacity: 0; }
    100% { transform: scale(2);  opacity: 0; }
}

/* ===== RESPONSIVE — TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===== RESPONSIVE — MÓVIL (≤768px) ===== */
@media (max-width: 768px) {
    body {
        font-size: 18px; /* ligeramente más grande para personas mayores */
    }

    .container {
        padding: 0 14px;
    }

    /* --- Header móvil --- */
    .main-header .container {
        padding: 10px 14px;
        flex-wrap: nowrap;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo a img {
        height: 50px !important;
    }

    /* Hamburguesa visible en móvil */
    

    /* Nav se despliega verticalmente */
    .main-nav {
        display: flex;
        flex-direction: column;
        position: static;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 10px;
        font-size: 16px;
        border: none;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    /* --- Hero --- */
    .hero {
        min-height: 260px;
    }

    .hero-overlay {
        min-height: 260px;
        padding: 30px 16px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        font-size: 19px;
        padding: 16px 20px;
    }

    /* --- Categorías --- */
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .category-image {
        height: 120px;
    }

    .category-name {
        font-size: 18px;
    }

    .category-placeholder span {
        font-size: 52px !important;
    }

    /* --- Productos --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .product-image,
    .product-image-placeholder {
        height: 180px;
    }

    .product-name {
        font-size: 21px;
    }

    .product-description {
        font-size: 16px;
    }

    .product-price {
        font-size: 26px;
    }

    .product-info {
        padding: 16px;
    }

    /* Botón añadir grande y fácil de pulsar */
    .product-footer .btn {
        font-size: 17px;
        padding: 14px 18px;
        min-height: 54px;
    }

    /* --- Barra de categorías --- */
    .category-item {
        font-size: 17px;
        padding: 12px 18px;
    }

    /* --- Carrito flotante más grande --- */
    .cart-float {
        bottom: 14px;
        padding: 14px 22px;
        width: calc(100% - 28px);
        max-width: 400px;
    }

    .cart-info strong {
        font-size: 21px;
    }

    /* --- Modal full-width en móvil --- */
    .modal.active {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        border-radius: 18px 18px 0 0;
        max-height: 92vh;
        width: 100%;
        font-size: 17px;
    }

    .modal-content h2 {
        font-size: 22px;
        padding: 18px 20px 12px;
        padding-right: 50px;
    }

    /* --- Formularios más fáciles de rellenar --- */
    .form-group input:not([type="radio"]):not([type="checkbox"]),
    .form-group select,
    .form-group textarea {
        font-size: 18px;
        padding: 15px;
        min-height: 56px;
    }

    .form-group label {
        font-size: 18px;
    }

    .auth-tab {
        font-size: 17px;
    }

    .auth-form {
        padding: 20px 16px;
    }

    /* --- Info cards una columna --- */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .info-card {
        padding: 22px;
    }

    .info-icon {
        font-size: 40px;
    }

    /* --- Status bar pedido --- */
    .status-label {
        font-size: 11px;
    }

    .status-dot {
        width: 14px;
        height: 14px;
    }

    .status-bar::before {
        top: 10px;
    }

    /* --- Botones generales más grandes en móvil --- */
    .btn {
        min-height: 54px;
        font-size: 17px;
    }

    .btn-large {
        font-size: 20px;
        padding: 18px 24px;
    }

    /* Features section */
    .features h2 {
        font-size: 28px !important;
    }

    .feature-icon {
        font-size: 56px !important;
    }

    .feature-card h3 {
        font-size: 22px !important;
    }

    .feature-card p {
        font-size: 17px !important;
    }
}

/* ===== RESPONSIVE — MÓVIL PEQUEÑO (≤400px) ===== */
@media (max-width: 400px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo h1 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    .product-footer {
        flex-direction: column;
        gap: 8px;
    }

    .product-footer .btn {
        width: 100%;
        white-space: normal; /* IMPORTANTE */
    }

    .product-price {
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════
   ESTILOS PARA BUILDER DE PRODUCTOS (ESTILO BURGER KING)
   ═══════════════════════════════════════════════════════ */

.pantalla-builder {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 85vh;
}

.builder-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: white;
}

.builder-progress {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C0392B 0%, #E74C3C 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.builder-titulo {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.builder-paso {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 500;
}

.mitad-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #C0392B;
    margin: 8px 0 0 0;
    padding: 8px 12px;
    background: #FEF6F5;
    border-radius: 8px;
    display: inline-block;
}

.builder-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.builder-footer {
    padding: 16px 20px;
    border-top: 2px solid #f0f0f0;
    background: white;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.builder-footer.confirmacion {
    flex-direction: column;
}

/* ══════════════════════════════════════════════════════
   PANTALLA 1: TAMAÑOS
   ══════════════════════════════════════════════════════ */

.tamanos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.tamano-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tamano-card:hover:not(.deshabilitado) {
    border-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.15);
}

.tamano-card.activo {
    border-color: #C0392B;
    background: #FEF6F5;
}

.tamano-card.deshabilitado {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.tamano-nombre {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.tamano-precio {
    font-size: 24px;
    font-weight: 800;
    color: #C0392B;
}

.solo-recogida-badge {
    font-size: 11px;
    background: #FFA500;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    margin: 8px 0;
    font-weight: 600;
    display: inline-block;
}

.tamano-no-disponible {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 8px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   PANTALLA 2: INGREDIENTES
   ══════════════════════════════════════════════════════ */

.mitad-mitad-box {
    background: linear-gradient(135deg, #f9f4fe 0%, #fff 100%);
    border: 2px solid #d8b5e8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.mitad-mitad-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}

.mitad-mitad-info {
    font-size: 13px;
    color: #7f8c8d;
    margin: 8px 0 0 28px;
}

.ingredientes-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ingredientes-seccion {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 16px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.ingrediente-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.ingrediente-item.sin-ingrediente {
    background: #f9f9f9;
    opacity: 0.7;
}

.ingrediente-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ingrediente-nombre {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.ingrediente-extra {
    font-size: 13px;
    color: #C0392B;
    font-weight: 600;
}

.ingrediente-controles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-ingrediente {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-ingrediente:hover:not(:disabled) {
    border-color: #C0392B;
    color: #C0392B;
}

.btn-ingrediente.activo {
    border-color: #C0392B;
    background: #FEF6F5;
    color: #C0392B;
}

.btn-ingrediente:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ingrediente-opcional {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ingrediente-opcional:hover {
    border-color: #C0392B;
    background: #FEF6F5;
}

.ingrediente-opcional.seleccionado {
    border-color: #C0392B;
    background: #FEF6F5;
}

.ingrediente-opcional .ingrediente-nombre {
    font-size: 14px;
}

.ingrediente-opcional .ingrediente-precio {
    font-size: 14px;
    font-weight: 700;
    color: #C0392B;
}

/* ══════════════════════════════════════════════════════
   PANTALLA 3: EXTRAS Y SALSAS
   ══════════════════════════════════════════════════════ */

.extras-seccion {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.extra-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.extra-card:hover {
    border-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.15);
}

.extra-card.seleccionado {
    border-color: #1D9E75;
    background: #F0FFF6;
}

.extra-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.extra-precio {
    font-size: 16px;
    font-weight: 700;
    color: #C0392B;
}

.extra-check {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1D9E75;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   PANTALLA FINAL: CONFIRMACIÓN
   ══════════════════════════════════════════════════════ */

.resumen-pedido {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.resumen-item:last-child {
    border-bottom: none;
}

.resumen-label {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    flex-shrink: 0;
}

.resumen-valor {
    font-size: 14px;
    color: #2c3e50;
    text-align: right;
    font-weight: 500;
}

.observaciones-box {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.obs-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cantidad-box {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.cantidad-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.btn-cantidad {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #C0392B;
    background: white;
    color: #C0392B;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-cantidad:hover {
    background: #C0392B;
    color: white;
}

.cantidad-valor {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    min-width: 40px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════
   BOTONES DEL FOOTER
   ══════════════════════════════════════════════════════ */

.btn-primario,
.btn-secundario {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex: 1;
}

.btn-primario {
    background: #C0392B;
    color: white;
}

.btn-primario:hover:not(:disabled) {
    background: #A93226;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-primario:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primario.grande {
    font-size: 17px;
    padding: 18px 24px;
    flex: none;
    width: 100%;
}

.btn-secundario {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secundario:hover {
    border-color: #C0392B;
    color: #C0392B;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .builder-header {
        padding: 16px;
    }
    
    .builder-titulo {
        font-size: 19px;
    }
    
    .builder-paso {
        font-size: 13px;
    }
    
    .builder-body {
        padding: 16px;
    }
    
    .tamanos-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .extras-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .ingrediente-controles {
        grid-template-columns: 1fr;
    }
    
    .btn-ingrediente {
        font-size: 14px;
        white-space: normal;
    }
    
    .builder-footer {
        padding: 12px 16px;
    }
    
    .btn-primario,
    .btn-secundario {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .tamanos-grid {
        grid-template-columns: 1fr;
    }
    
    .tamano-nombre {
        font-size: 16px;
    }
    
    .tamano-precio {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════════════════
   BUILDER STYLES — añadir al final de style.css
   ═══════════════════════════════════════════════════════ */

/* Precio en vivo en cabecera del builder */
.precio-en-vivo {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}
.precio-en-vivo strong {
    color: #C0392B;
    font-size: 16px;
}

/* Ingrediente no disponible */
.ingrediente-nodisponible-tag {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}
.ingrediente-item.no-disponible {
    opacity: 0.6;
    background: #f9f9f9;
}

/* Extra/salsa no disponible */
.extra-card.no-disponible {
    opacity: 0.45;
    cursor: not-allowed !important;
    background: #f5f5f5 !important;
    border: 1px dashed #ccc !important;
    pointer-events: none;
}

/* Tamaño deshabilitado */
.tamano-card.deshabilitado {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border: 2px dashed #ddd;
}
.tamano-no-disponible {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}
.solo-recogida-badge {
    font-size: 11px;
    color: #e67e22;
    background: #fff3e0;
    border-radius: 8px;
    padding: 2px 8px;
    margin-top: 4px;
    display: inline-block;
}

/* Resumen total en confirmación */
.resumen-total {
    border-top: 2px solid #eee;
    padding-top: 12px;
    margin-top: 8px;
}

/* Botón grande */
.btn-primario.grande {
    font-size: 16px;
    padding: 14px 24px;
}

/* ===== ESTILOS BURGER KING PARA INGREDIENTES ===== */

/* Contenedor de ingrediente estilo BK */
.ingrediente-bk {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.ingrediente-bk:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ingrediente-bk-info {
    margin-bottom: 12px;
}

.ingrediente-bk-nombre {
    font-size: 15px;
    font-weight: 600;
    color: #2C2C2C;
    display: block;
    margin-bottom: 4px;
}

.ingrediente-bk-precio {
    font-size: 13px;
    color: #C0392B;
    font-weight: 500;
}

/* Controles estilo BK - tres botones horizontales */
.ingrediente-bk-controles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-bk {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    min-height: 70px;
}

.btn-bk:hover {
    border-color: #C0392B;
    background: #FFF5F5;
}

.btn-bk.activo {
    background: #C0392B;
    border-color: #C0392B;
    color: white;
}

.btn-bk-icon {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.btn-bk-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botón minus (quitar) */
.btn-bk-minus .btn-bk-icon {
    color: #e74c3c;
}

.btn-bk-minus.activo .btn-bk-icon {
    color: white;
}

.btn-bk-minus.activo {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Botón normal */
.btn-bk-normal .btn-bk-icon {
    color: #95a5a6;
}

.btn-bk-normal.activo .btn-bk-icon {
    color: white;
}

/* Botón plus (extra) */
.btn-bk-plus .btn-bk-icon {
    color: #1D9E75;
}

.btn-bk-plus.activo .btn-bk-icon {
    color: white;
}

.btn-bk-plus.activo {
    background: #1D9E75;
    border-color: #1D9E75;
}

/* Ingredientes opcionales estilo BK */
.ingrediente-bk-opcional {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ingrediente-bk-opcional:hover {
    border-color: #C0392B;
    background: #FFF5F5;
}

.ingrediente-bk-opcional.seleccionado {
    background: #C0392B;
    border-color: #C0392B;
    color: white;
}

.ingrediente-bk-opcional-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ingrediente-bk-opcional .ingrediente-bk-nombre {
    font-size: 14px;
    font-weight: 600;
}

.ingrediente-bk-opcional .ingrediente-bk-precio {
    font-size: 12px;
    color: #666;
}

.ingrediente-bk-opcional.seleccionado .ingrediente-bk-precio {
    color: rgba(255,255,255,0.9);
}

.ingrediente-bk-opcional-check {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
}

.ingrediente-bk-opcional.seleccionado .ingrediente-bk-opcional-check {
    background: rgba(255,255,255,0.2);
}

/* No disponible en estilo BK */
.ingrediente-bk.no-disponible {
    opacity: 0.5;
    background: #f9f9f9;
    cursor: not-allowed;
}

.ingrediente-bk-opcional.no-disponible {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .ingrediente-bk-controles {
        gap: 6px;
    }
    
    .btn-bk {
        padding: 10px 6px;
        min-height: 65px;
    }
    
    .btn-bk-icon {
        font-size: 20px;
    }
    
    .btn-bk-label {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════
   ESTILOS PARA MODAL BUILDER - ESTILO BURGER KING
   ═══════════════════════════════════════════════════════ */

/* Modal overlay */
#modal-builder {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#modal-builder-content {
    background: #F8F9FA;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    /* IMPORTANTE: Scroll suave */
    scroll-behavior: auto;
}

/* Pantalla builder */
.pantalla-builder {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

/* Header */
.builder-header {
    background: white;
    padding: 24px 20px;
    border-bottom: 1px solid #E0E0E0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(to bottom, white 0%, white 90%, rgba(255,255,255,0) 100%);
}

.builder-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #2C2C2C;
    margin: 8px 0 4px 0;
}

.builder-paso {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.precio-en-vivo {
    margin-top: 12px;
    font-size: 18px;
    color: #2C2C2C;
}

.precio-en-vivo strong {
    font-size: 24px;
    color: #C0392B;
    font-weight: 700;
}

/* Barra de progreso */
.builder-progreso {
    margin-bottom: 16px;
}

.builder-progreso-bar {
    width: 100%;
    height: 6px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.builder-progreso-fill {
    height: 100%;
    background: linear-gradient(90deg, #C0392B 0%, #E74C3C 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.builder-progreso-texto {
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* Body */
.builder-body {
    padding: 20px;
    flex: 1;
}

/* Footer */
.builder-footer {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-volver {
    flex: 0 0 auto;
    padding: 14px 24px;
    border: 2px solid #E0E0E0;
    background: white;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-volver:hover {
    border-color: #C0392B;
    color: #C0392B;
}

.btn-siguiente,
.btn-añadir-carrito {
    flex: 1;
    padding: 14px 24px;
    background: #C0392B;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-siguiente:hover,
.btn-añadir-carrito:hover {
    background: #A93226;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* ═══════════════════════════════════════════════════════
   GRID DE CARDS - ESTILO BURGER KING
   ═══════════════════════════════════════════════════════ */

.bk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.bk-card {
    background: white;
    border: 3px solid #E0E0E0;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bk-card:hover {
    border-color: #C0392B;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.bk-card.seleccionado {
    border-color: #C0392B;
    background: #FFF5F5;
}

.bk-card-img {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #F5F5F5;
    margin-bottom: 8px;
}

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

.bk-card-nombre {
    font-size: 15px;
    font-weight: 600;
    color: #2C2C2C;
    line-height: 1.3;
}

.bk-card-precio {
    font-size: 14px;
    color: #C0392B;
    font-weight: 600;
}

.bk-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #E67E22;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.bk-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #1D9E75;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(29, 158, 117, 0.4);
}

/* ═══════════════════════════════════════════════════════
   INGREDIENTES - ESTILO BURGER KING
   ═══════════════════════════════════════════════════════ */

.seccion-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #2C2C2C;
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #E0E0E0;
}

.bk-ingredientes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.bk-ing-card {
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.2s;
}

.bk-ing-card:hover {
    border-color: #C0392B;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bk-ing-card.no-disponible {
    opacity: 0.5;
    pointer-events: none;
}

.bk-ing-img {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
    margin-bottom: 12px;
    position: relative;
}

.bk-ing-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.bk-ing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.bk-ing-nombre {
    font-size: 15px;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 4px;
    text-align: center;
}

.bk-ing-precio-info {
    font-size: 12px;
    color: #C0392B;
    text-align: center;
    margin-bottom: 12px;
}

/* Controles de ingrediente (- / = / +) */
.bk-ing-controles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.bk-btn-control {
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.bk-btn-control:hover {
    border-color: #C0392B;
    background: #FFF5F5;
}

.bk-btn-icon {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.bk-btn-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Botón "Sin" (quitar) */
.bk-btn-control.bk-minus .bk-btn-icon {
    color: #E74C3C;
}

.bk-btn-control.bk-minus.activo {
    background: #E74C3C;
    border-color: #E74C3C;
    color: white;
}

.bk-btn-control.bk-minus.activo .bk-btn-icon {
    color: white;
}

/* Botón "Igual" (normal) */
.bk-btn-control.bk-normal .bk-btn-icon {
    color: #95A5A6;
}

.bk-btn-control.bk-normal.activo {
    background: #95A5A6;
    border-color: #95A5A6;
    color: white;
}

.bk-btn-control.bk-normal.activo .bk-btn-icon {
    color: white;
}

/* Botón "Extra" (más) */
.bk-btn-control.bk-plus .bk-btn-icon {
    color: #1D9E75;
}

.bk-btn-control.bk-plus.activo {
    background: #1D9E75;
    border-color: #1D9E75;
    color: white;
}

.bk-btn-control.bk-plus.activo .bk-btn-icon {
    color: white;
}

/* ═══════════════════════════════════════════════════════
   EXTRAS Y SALSAS - ESTILO BURGER KING
   ═══════════════════════════════════════════════════════ */

.bk-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.bk-extra-card {
    background: white;
    border: 3px solid #E0E0E0;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-align: center;
}

.bk-extra-card:hover {
    border-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bk-extra-card.seleccionado {
    border-color: #1D9E75;
    background: #F0FFF9;
}

.bk-extra-img {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #F5F5F5;
    margin-bottom: 8px;
}

.bk-extra-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-extra-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 4px;
}

.bk-extra-precio {
    font-size: 13px;
    color: #C0392B;
    font-weight: 600;
}

.bk-extra-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #1D9E75;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(29, 158, 117, 0.4);
}

/* ═══════════════════════════════════════════════════════
   MITAD Y MITAD
   ═══════════════════════════════════════════════════════ */

.mitad-mitad-box {
    background: white;
    border: 2px solid #9B59B6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.mitad-mitad-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
}

.mitad-mitad-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.mitad-mitad-info {
    margin: 8px 0 0 36px;
    font-size: 13px;
    color: #666;
}

.mitad-indicator {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.mitad-tab {
    flex: 1;
    padding: 14px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.mitad-tab:hover {
    border-color: #C0392B;
}

.mitad-tab.activo {
    background: #C0392B;
    border-color: #C0392B;
    color: white;
}

/* ═══════════════════════════════════════════════════════
   CONFIRMACIÓN
   ═══════════════════════════════════════════════════════ */

.confirmacion-producto {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.confirmacion-producto h3 {
    font-size: 24px;
    color: #2C2C2C;
    margin-bottom: 8px;
}

.confirmacion-precio {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.confirmacion-precio strong {
    font-size: 24px;
    color: #C0392B;
    font-weight: 700;
}

.confirmacion-detalles {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.detalle-item {
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 15px;
    color: #2C2C2C;
}

.detalle-item:last-child {
    border-bottom: none;
}

.confirmacion-cantidad {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confirmacion-cantidad label {
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
}

.cantidad-controles {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cantidad-controles button {
    width: 44px;
    height: 44px;
    border: 2px solid #E0E0E0;
    background: white;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #C0392B;
    cursor: pointer;
    transition: all 0.2s;
}

.cantidad-controles button:hover {
    border-color: #C0392B;
    background: #FFF5F5;
}

.cantidad-controles span {
    font-size: 24px;
    font-weight: 700;
    color: #2C2C2C;
    min-width: 40px;
    text-align: center;
}

.confirmacion-notas {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.confirmacion-notas label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 12px;
}

.confirmacion-notas textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.confirmacion-notas textarea:focus {
    outline: none;
    border-color: #C0392B;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    #modal-builder-content {
        max-height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .bk-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .bk-ingredientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .bk-extras-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .builder-titulo {
        font-size: 22px;
    }
    
    .builder-paso {
        font-size: 14px;
    }
    
    .bk-card-img {
        height: 100px;
    }
    
    .bk-ing-img {
        height: 70px;
    }
    
    .bk-extra-img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .bk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .bk-extras-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .bk-ing-card,
    .bk-extra-card {
        min-width: 0;
        overflow: hidden;
        word-break: break-word;
    }

    #modal-scroll {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .builder-body {
        overflow-x: hidden;
    }
    
    .builder-header {
        padding: 16px;
    }
    
    .builder-body {
        padding: 16px;
    }
    
    .builder-footer {
        padding: 12px 16px;
        flex-direction: column;
    }
    
    .btn-volver {
        width: 100%;
    }
    
    .btn-siguiente,
    .btn-añadir-carrito {
        width: 100%;
    }
    
    .bk-btn-control {
        padding: 8px 4px;
    }
    
    .bk-btn-icon {
        font-size: 18px;
    }
    
    .bk-btn-text {
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════
   PREVENIR SCROLL NO DESEADO
   ═══════════════════════════════════════════════════════ */

/* Esto evita que al hacer click se dispare scroll automático */
#modal-builder-content * {
    scroll-margin-top: 0;
    scroll-margin-bottom: 0;
}

/* Smooth scroll solo cuando el usuario lo hace manualmente */
#modal-builder-content {
    scroll-behavior: smooth;
}

/* Cuando se hace click en elementos, mantener posición */
.bk-card,
.bk-ing-card,
.bk-extra-card,
.bk-btn-control {
    scroll-snap-stop: normal;
}
/* ═══════════════════════════════════════════════════════
   NUEVOS ESTILOS BUILDER — prog-steps, mitad, confirm
   ═══════════════════════════════════════════════════════ */

/* Pasos numerados de progreso */
.builder-progreso-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.prog-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    background: #f0f0f0;
    color: #888;
    border: 2px solid #ddd;
    user-select: none;
}
.prog-step.active {
    background: #C0392B;
    color: #fff;
    border-color: #C0392B;
    transform: scale(1.1);
}
.prog-step.done {
    background: #1D9E75;
    color: #fff;
    border-color: #1D9E75;
}

/* Header sticky opcional */
.builder-header-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* Card description */
.bk-card-desc {
    font-size: 11px;
    color: #888;
    padding: 0 10px;
    line-height: 1.3;
    text-align: center;
}
.bk-card-check-wrap {
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bk-precio-gratis { color: #1D9E75 !important; }

/* Card img vacía (emoji) */
.bk-card-img-empty {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #fafafa;
    border-radius: 10px 10px 0 0;
}
.bk-ing-img-empty {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: #fafafa;
    border-radius: 10px 10px 0 0;
}
.bk-ing-nodisponible {
    font-size: 11px;
    color: #e74c3c;
    font-weight: 600;
    text-align: center;
    padding: 4px;
}

/* Botón desactivar mitad y mitad */
.btn-desactivar-mitad {
    display: block;
    width: 100%;
    margin: 0 0 14px 0;
    padding: 7px;
    background: #fee2e2;
    color: #e74c3c;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.btn-desactivar-mitad:hover { background: #fecaca; }

/* Toggle mitad y mitad mejorado */
.mitad-mitad-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 2px dashed #e74c3c;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
}
.mitad-mitad-toggle:hover { border-style: solid; background: #fff5f5; }
.mitad-toggle-icon { font-size: 28px; }
.mitad-toggle-texto { flex: 1; }
.mitad-toggle-texto strong { display: block; font-size: 14px; color: #C0392B; }
.mitad-toggle-texto small  { font-size: 12px; color: #888; }
.mitad-toggle-btn {
    background: #C0392B;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* Tabs mitad mejorados */
.mitad-indicator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 6px;
}
.mitad-tab {
    padding: 10px 8px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    border: 2px solid transparent;
}
.mitad-tab span { display: block; font-weight: 700; font-size: 13px; color: #555; }
.mitad-tab small { display: block; font-size: 11px; color: #888; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mitad-tab:hover { background: #f0f0f0; }
.mitad-tab.activo { background: #fff; border-color: #C0392B; box-shadow: 0 2px 8px rgba(192,57,43,.15); }
.mitad-tab.activo span { color: #C0392B; }
.mitad-divisor { font-size: 20px; font-weight: 900; color: #C0392B; text-align: center; }

/* Selector mitad 2 - chips resumen */
.mitad-resumen-actual {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}
.mitad-chip {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.mitad-chip-1 { background: #fee2e2; color: #C0392B; }
.mitad-chip-2 { background: #dbeafe; color: #1e40af; }
.mitad-chip-sep { font-weight: 900; color: #888; }

/* CONFIRMACIÓN — nuevo diseño */
.confirmacion-producto {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}
.confirm-prod-nombre {
    font-size: 20px;
    font-weight: 800;
    color: #C0392B;
    margin-bottom: 6px;
}
.confirm-prod-tamano, .confirm-prod-variante, .confirm-prod-extra {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}
.confirm-prod-precio {
    font-size: 18px;
    color: #222;
    margin-top: 10px;
    font-weight: 600;
}
.confirm-prod-precio strong { color: #C0392B; font-size: 22px; }

.confirm-section {
    background: #fafafa;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.confirm-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.confirm-det {
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.confirm-det:last-child { border-bottom: none; }
.confirm-det-sin    { color: #e74c3c; }
.confirm-det-doble  { color: #7c3aed; }
.confirm-det-extra  { color: #1D9E75; }
.confirm-det-salsa  { color: #d97706; }
.confirm-sin-cambios {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #1D9E75;
    font-weight: 600;
    text-align: center;
}

/* Mitad bloques en confirmación */
.confirm-mitad-section {
    border-left: 4px solid #C0392B;
}
.confirm-mitad-bloque {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
}
.confirm-mitad-bloque:last-child { border-bottom: none; margin-bottom: 0; }
.confirm-mitad-titulo {
    font-size: 13px;
    font-weight: 700;
    color: #C0392B;
    margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════
   FIX MODAL CENTRADO — product-modal usa display:flex inline
   ═══════════════════════════════════════════════════════ */
#product-modal {
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#product-modal .modal-content {
    max-width: 680px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
@media (max-width: 600px) {
    #product-modal {
        padding: 0;
        align-items: flex-end;
    }
    #product-modal .modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 96vh;
    }
}

/* ═══════════════════════════════════════════════════════
   FIX SUPERPOSICIÓN CART-FLOAT — no tapar controles
   ═══════════════════════════════════════════════════════ */
.cart-float {
    bottom: 24px;
    z-index: 990;  /* por debajo del modal (z:2000) pero sobre contenido */
}
/* En carta.php dar espacio al fondo para que cart-float no tape productos */
.carta-content, #vista-productos, .productos-grid {
    padding-bottom: 100px !important;
}
/* En nuevo.php admin: el cart-float de carta.js NO debe aparecer */
body.admin-nuevo #cart-float {
    display: none !important;
}

/* Fix scroll-anchor reset when innerHTML changes in modal */
#product-modal .modal-content {
    overflow-anchor: none;
}

/* ── Resumen de item en carrito (ri-*) ────────────────── */
.ri-detalles { margin-top: 4px; }
.ri-linea { font-size: 12px; margin-top: 2px; line-height: 1.4; }
.ri-tamano    { color: #555; }
.ri-mitad-titulo { color: #9b59b6; font-weight: 600; margin-top: 4px; }
.ri-mitad1-nombre { color: #C0392B; font-weight: 600; font-size: 12px; }
.ri-mitad2-nombre { color: #1e40af; font-weight: 600; font-size: 12px; margin-top: 3px; }
.ri-sin     { color: #C0392B; }
.ri-doble   { color: #7c3aed; }
.ri-normal  { color: #555; }
.ri-extra   { color: #1D9E75; }
.ri-salsa   { color: #2471A3; }
.ri-carne   { color: #8B4513; }
.ri-bocata  { color: #8e44ad; }
.ri-variante { color: #2E86C1; }
.ri-notas   { color: #888; font-style: italic; }

/* ═══════════════════════════════════════════════════════
   MEJORAS DE INTERFAZ MODERNA
   ═══════════════════════════════════════════════════════ */

/* Transiciones suaves globales */
*, *::before, *::after { box-sizing: border-box; }

/* Header con sombra más elegante */
.main-header {
    box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    backdrop-filter: blur(8px);
}

/* Product cards — sombra más rica, borde sutil */
.product-card {
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 0 0 0 rgba(192,57,43,0);
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12), 0 0 0 2px rgba(192,57,43,.12);
}

/* Botón primario con gradiente */
.btn-primary {
    background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
    box-shadow: 0 4px 12px rgba(192,57,43,.3);
    transition: all .2s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #A93226 0%, #C0392B 100%);
    box-shadow: 0 6px 18px rgba(192,57,43,.4);
    transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* Botón success */
.btn-success {
    background: linear-gradient(135deg, #1D9E75 0%, #27ae60 100%);
    box-shadow: 0 4px 12px rgba(29,158,117,.3);
}
.btn-success:hover {
    box-shadow: 0 6px 18px rgba(29,158,117,.4);
    transform: translateY(-2px);
}

/* Category bar pills más modernas */
.category-item {
    border: 1.5px solid transparent;
    transition: all .2s ease;
    font-weight: 600;
}
.category-item:hover {
    border-color: var(--primary);
    background: rgba(192,57,43,.07);
    color: var(--primary);
}
.category-item.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(192,57,43,.3);
}

/* Cart float — más llamativo con pulso */
.cart-float {
    background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
    box-shadow: 0 6px 24px rgba(192,57,43,.45);
    animation: cart-breathe 3s ease-in-out infinite;
}
@keyframes cart-breathe {
    0%,100% { box-shadow: 0 6px 24px rgba(192,57,43,.45); }
    50%      { box-shadow: 0 8px 32px rgba(192,57,43,.65); }
}

/* Modal — fondo más oscuro, animación entrada */
.modal { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.modal-content { animation: modal-slide-in .25s ease; }
@keyframes modal-slide-in {
    from { opacity:0; transform: translateY(20px) scale(.97); }
    to   { opacity:1; transform: translateY(0)   scale(1); }
}
@media(max-width:768px){
    .modal-content { animation: modal-slide-up .25s ease; }
    @keyframes modal-slide-up {
        from { transform: translateY(40px); opacity:0; }
        to   { transform: translateY(0);    opacity:1; }
    }
}

/* Inputs focus mejorado */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192,57,43,.12);
    outline: none;
}

/* Info cards hover */
.info-card {
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(0,0,0,.05);
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

/* Hero gradient overlay más rico */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(192,57,43,.35) 100%);
}

/* Skeleton loading para imágenes */
.product-image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}
@keyframes skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Badge "Nuevo" / "Popular" en producto */
.product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.product-badge-popular { background:#FFF3CD; color:#856404; }
.product-badge-nuevo   { background:#D4EDDA; color:#155724; }

/* Smooth scroll global */
html { scroll-behavior: smooth; }

/* Scrollbar más elegante (Chrome) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #C0392B; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #A93226; }

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2C2C2C;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: all .3s ease;
    z-index: 9998;
    white-space: nowrap;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Valoraciones — estrellas */
.val-stars { color: #F39C12; letter-spacing: 2px; }
.val-stars-empty { color: #ddd; }


/* ═══════════════════════════════════════════════════════════
   DISEÑO MODERNO Y ÚNICO — Don Pollo
   ═══════════════════════════════════════════════════════════ */

/* Variables extra */
:root {
    --gradient-primary: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
    --gradient-dark:    linear-gradient(135deg, #1a1a1a 0%, #2C2C2C 100%);
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ── HEADER ─────────────────────────────────────────────── */
.main-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 4px 20px rgba(0,0,0,.05);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(10px);
}
.header-content {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 14px 20px; max-width: 1100px; margin: 0 auto;
}
.logo img, .logo-img { height: 48px; }
.nav-links a {
    font-weight: 600; font-size: 14px; color: #555;
    text-decoration: none; padding: 6px 12px;
    border-radius: 20px; transition: all .2s;
}
.nav-links a:hover { background: #f5f5f5; color: var(--primary); }

/* ── HERO (index) ───────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: 48px;
}
.hero-overlay {
    background: linear-gradient(160deg,
        rgba(0,0,0,.72) 0%,
        rgba(192,57,43,.4) 60%,
        rgba(0,0,0,.2) 100%) !important;
}
.hero-content h1 {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-content p {
    font-size: clamp(15px, 2.5vw, 19px);
    opacity: .9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── BOTONES ─────────────────────────────────────────────── */
.btn {
    border-radius: 30px !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
    transition: all .22s ease !important;
}
.btn-primary {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 14px rgba(192,57,43,.35) !important;
    border: none !important;
}
.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(192,57,43,.45) !important;
}
.btn-primary:active { transform: translateY(0) !important; }

.btn-success {
    background: linear-gradient(135deg, #1D9E75, #27ae60) !important;
    box-shadow: 0 4px 14px rgba(29,158,117,.3) !important;
}

/* ── INFO CARDS (index) ─────────────────────────────────── */
.info-card {
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(0,0,0,.05) !important;
    transition: transform .22s, box-shadow .22s;
    background: #fff !important;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1) !important;
}
.info-icon { font-size: 40px !important; margin-bottom: 12px; }

/* ── CATEGORY CARDS ─────────────────────────────────────── */
.category-card {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06) !important;
    transition: transform .22s, box-shadow .22s;
    cursor: pointer;
    background: #fff;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,.12) !important;
}
.category-card:active { transform: scale(.97); }
.category-name { font-size: 16px !important; font-weight: 700 !important; }
.category-count { font-size: 12px !important; color: #aaa !important; }

/* ── CARRITO FLOTANTE ───────────────────────────────────── */
.cart-float {
    background: var(--gradient-primary) !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 28px rgba(192,57,43,.5) !important;
    animation: cart-breathe 3s ease-in-out infinite;
    padding: 14px 28px !important;
}
@keyframes cart-breathe {
    0%,100% { box-shadow: 0 8px 28px rgba(192,57,43,.5); }
    50%      { box-shadow: 0 10px 36px rgba(192,57,43,.7); }
}

/* ── MODAL ───────────────────────────────────────────────── */
.modal { background: rgba(0,0,0,.6) !important; backdrop-filter: blur(6px); }
.modal-content {
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 24px 64px rgba(0,0,0,.25) !important;
    animation: modal-in .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-in {
    from { opacity:0; transform: scale(.92) translateY(16px); }
    to   { opacity:1; transform: scale(1)   translateY(0); }
}
@media(max-width:768px){
    .modal-content { animation: modal-up .28s cubic-bezier(.34,1.56,.64,1); }
    @keyframes modal-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
}

/* ── INPUTS ─────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="datetime-local"],
select, textarea {
    border-radius: 12px !important;
    border: 2px solid #eee !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: border-color .2s, box-shadow .2s !important;
    font-family: inherit !important;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(192,57,43,.1) !important;
    outline: none !important;
}

/* ── SECCIÓN TÍTULO ─────────────────────────────────────── */
.section-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -.3px;
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #C0392B; border-radius: 4px; }

/* ── SMOOTH SCROLL ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── FOOTER (si existe) ─────────────────────────────────── */
.main-footer {
    background: var(--gradient-dark);
    color: rgba(255,255,255,.7);
    padding: 32px 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 60px;
}
.main-footer a { color: rgba(255,255,255,.6); text-decoration: none; }
.main-footer a:hover { color: #fff; }

/* ── ESTADO BADGE (pedidos) ─────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}
.badge-warning  { background: #fff3cd; color: #856404; }
.badge-info     { background: #d1ecf1; color: #0c5460; }
.badge-success  { background: #d4edda; color: #155724; }
.badge-danger   { background: #f8d7da; color: #721c24; }
