/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e49e1e;
    --primary-dark: #be8314;
    --secondary-color: #FF9800;
    --accent-color: #2196F3;
    --text-color: #333;
    --text-light: #666;
    --background-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

.main-content {
    margin-top: 60px;
}

/* Header */
.header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/29.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
    border-radius: 0 0 25px 25px;
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 1rem 20px;
    flex: 1;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.header-icon-btn i {
    color: white;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.header-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: white;
    padding: 2px;
}

.header h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.header .cart-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.header .cart-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.header .cart-toggle i {
    color: white;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cart-icon:hover {
    background-color: var(--background-color);
}

.cart-icon i {
    font-size: 1.5rem;
    color: var(--text-color);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
}

.categoria-section {
    margin-bottom: 3rem;
}

.categoria-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Grid de Productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.producto-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.producto-imagen {
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.05);
}

.producto-info {
    padding: 1.5rem;
}

/* Menú horizontal de categorías */
.categoria-menu {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 14px 0;
}

.categoria-menu::-webkit-scrollbar {
    height: 8px;
}

.categoria-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.categoria-chip {
    flex: 0 0 auto;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.categoria-chip:hover {
    background: var(--background-color);
}

.categoria-chip.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.categoria-section.hidden {
    display: none;
}

.producto-nombre {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.producto-descripcion {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.producto-precio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.precio-desde {
    font-size: 0.9rem;
    color: var(--text-light);
}

.precio-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-agregar {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.close {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

/* Estilos para la imagen del producto en el modal */
.producto-modal-imagen {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.producto-modal-imagen img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.producto-modal-imagen img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.opciones-section {
    margin-bottom: 2rem;
}

.opciones-section h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.opcion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.opcion-item:hover {
    border-color: var(--primary-color);
}

.opcion-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.1);
}

.opcion-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opcion-precio {
    font-weight: bold;
    color: var(--primary-color);
}

.comentarios-section {
    margin-bottom: 2rem;
}

.comentarios-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.comentarios-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cantidad-section {
    margin-bottom: 2rem;
}

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.cantidad-control button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.cantidad-control button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.cantidad-control span {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.precio-total-section {
    text-align: center;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.precio-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
}

.btn-cancelar {
    flex: 1;
    padding: 0.8rem;
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancelar:hover {
    background: var(--background-color);
}

.btn-agregar-carrito {
    flex: 2;
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-agregar-carrito:hover {
    background: var(--primary-dark);
}

/* Carrito Sidebar */
.carrito-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.carrito-sidebar.active {
    right: 0;
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
}

.carrito-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.carrito-item-info {
    flex: 1;
}

.carrito-item-nombre {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.carrito-item-detalles {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.carrito-item-precio {
    font-weight: bold;
    color: var(--primary-color);
}

.carrito-item-cantidad {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.carrito-item-cantidad button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.carrito-item-cantidad button:hover {
    background: var(--background-color);
}

.carrito-item-eliminar {
    color: #f44336;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.carrito-item-eliminar:hover {
    color: #d32f2f;
}

.carrito-total {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
}

.subtotal {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    color: var(--primary-color);
}

.carrito-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-continuar {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-continuar:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-continuar:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Checkout Styles */
.checkout-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-back {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #e2e8f0;
    color: #475569;
}

.checkout-header h1 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
}

.checkout-content {
    display: grid;
    gap: 20px;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-summary h2 {
    margin: 0 0 20px 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.item-info h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1rem;
}

.item-details {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-details .option,
.item-details .extras,
.item-details .comments {
    display: block;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.remove-item-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.remove-item-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.remove-item-btn:active {
    transform: scale(0.95);
}

.quantity {
    font-size: 0.875rem;
    color: #64748b;
}

.price {
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
}

.order-totals {
    border-top: 2px solid #e2e8f0;
    padding-top: 15px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.total-final {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 10px;
}

/* Cart Actions */
.cart-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

.btn-clear-cart {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-clear-cart:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-clear-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-clear-cart i {
    font-size: 1rem;
}

/* Form Styles */
.checkout-form {
    display: grid;
    gap: 25px;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

.form-group input.error {
    border-color: #ef4444;
}

/* Mensajes de validación */
.validation-message {
    margin-top: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}

.validation-message:not(:empty) {
    display: block;
}

.validation-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.validation-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.validation-message.validating {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    position: relative;
}

.validation-message.validating::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #1e40af;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.phone-input {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
}

/* Delivery Options */
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-option {
    position: relative;
    cursor: pointer;
}

.delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.delivery-option input[type="radio"]:checked + .option-content {
    border-color: #059669;
    background: #f0fdf4;
    color: #059669;
}

.option-content i {
    font-size: 1.5rem;
}

/* Tip Options */
.tip-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.tip-option {
    position: relative;
    cursor: pointer;
}

.tip-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tip-option span {
    display: block;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tip-option input[type="radio"]:checked + span {
    border-color: #059669;
    background: #f0fdf4;
    color: #059669;
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.payment-option {
    position: relative;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option .option-content {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-option input[type="radio"]:checked + .option-content {
    border-color: #059669;
    background: #f0fdf4;
    color: #059669;
}

/* Buttons */
/* Location Label */
.location-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 10px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    line-height: 1.4;
}

.location-label i {
    color: #3b82f6;
    font-size: 1rem;
}

.btn-location {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.btn-location:hover {
    background: #2563eb;
}

.btn-location.location-shared {
    background: #059669;
}

.btn-location.location-shared:hover {
    background: #047857;
}

.btn-location:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-location:disabled:hover {
    background: #9ca3af;
}

.btn-location.location-out-of-range {
    background: #ef4444;
    color: white;
}

.btn-location.location-out-of-range:hover {
    background: #dc2626;
}

/* Campos auto-llenados */
.form-group input[style*="background-color: rgb(232, 245, 232)"],
.form-group input[style*="background-color: #e8f5e8"] {
    border-color: #059669;
    background-color: #e8f5e8 !important;
    position: relative;
}

.form-group input[style*="background-color: rgb(232, 245, 232)"]:focus,
.form-group input[style*="background-color: #e8f5e8"]:focus {
    border-color: #047857;
    background-color: #dcfce7 !important;
}

/* Indicador visual para campos auto-llenados */
.form-group input[style*="background-color: rgb(232, 245, 232)"]::after,
.form-group input[style*="background-color: #e8f5e8"]::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #059669;
    font-weight: bold;
}

.btn-submit {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-submit:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        min-height: 160px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }
    
    .header-content {
        padding: 0.8rem 15px;
    }
    
    .header-icons {
        gap: 8px;
    }
    
    .header-icon-btn {
        width: 35px;
        height: 35px;
    }
    
    .header-icon-btn i {
        font-size: 14px;
    }
    
    .main-content {
        margin-top: 40px;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .carrito-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .cantidad-control {
        justify-content: center;
    }
    
    /* Checkout responsive */
    .checkout-container {
        padding: 10px;
    }
    
    .delivery-options {
        grid-template-columns: 1fr;
    }
    
    .tip-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .phone-input {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0.8rem 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .categoria-title {
        font-size: 1.3rem;
    }
    
    .producto-info {
        padding: 1rem;
    }
}

/* Resumen del Carrito */
.carrito-resumen {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
    animation: slideUp 0.3s ease-out;
}

.resumen-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.resumen-items {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.resumen-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.btn-ver-pedido {
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-ver-pedido:hover {
    background: #047857;
    transform: translateY(-1px);
}

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

/* Responsive para el resumen */
@media (max-width: 768px) {
    .carrito-resumen {
        padding: 0.8rem 1rem;
    }
    
    .resumen-content {
        gap: 0.8rem;
    }
    
    .resumen-items {
        font-size: 0.85rem;
    }
    
    .resumen-total {
        font-size: 1rem;
    }
    
    .btn-ver-pedido {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

/* Modal Información de Empresa */
.info-empresa-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    position: relative;
}

.empresa-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empresa-logo {
    text-align: center;
    margin-bottom: 20px;
}

.empresa-logo img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empresa-datos {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.info-item span {
    color: var(--text-color);
    font-weight: 500;
}

.horarios-lista {
    display: grid;
    gap: 8px;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.horario-item .dia {
    font-weight: 600;
    color: var(--text-color);
    min-width: 80px;
}

.horario-item span:last-child {
    color: var(--text-light);
    font-weight: 500;
}

/* Responsive para modal de empresa */
@media (max-width: 768px) {
    .info-empresa-modal {
        max-width: 95%;
        margin: 10px;
    }
    
    .empresa-info-container {
        gap: 15px;
    }
    
    .info-section {
        padding: 15px;
    }
    
    .empresa-logo img {
        max-width: 150px;
        max-height: 75px;
    }
    
    .horario-item {
        padding: 6px 10px;
    }
    
    .horario-item .dia {
        min-width: 70px;
        font-size: 0.9rem;
    }
    
    /* Modal de horario cerrado responsivo */
    .modal .modal-content[style*="max-width: 400px"] {
        max-width: 95% !important;
        margin: 5% auto !important;
        width: 95% !important;
    }
    
    .modal .modal-footer[style*="display: flex"] {
        padding: 15px !important;
    }
    
    .modal .btn-entendido {
        padding: 14px 28px !important;
        font-size: 16px !important;
        min-height: 48px !important; /* Tamaño mínimo para touch */
        width: auto !important;
        max-width: 200px !important;
    }
}

@media (max-width: 480px) {
    /* Modal de horario cerrado para móviles pequeños */
    .modal .modal-content[style*="max-width: 400px"] {
        max-width: 98% !important;
        margin: 2% auto !important;
        width: 98% !important;
    }
    
    .modal .modal-footer[style*="display: flex"] {
        padding: 20px 15px !important;
    }
    
    .modal .btn-entendido {
        padding: 16px 32px !important;
        font-size: 16px !important;
        min-height: 50px !important; /* Tamaño óptimo para touch en móviles */
        width: 100% !important;
        max-width: 250px !important;
        letter-spacing: 1px !important;
    }
    
    .modal .modal-body {
        padding: 20px 15px !important;
    }
    
    .modal .modal-header {
        padding: 15px !important;
    }
    
    .modal .modal-header h3 {
        font-size: 1.2rem !important;
    }
}

/* Estilos para las secciones de detalles de pago */
.payment-details {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-details .form-group {
    margin-bottom: 0;
}

.payment-details label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.payment-details input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.payment-details input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.payment-details small {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Estilos para la sección de transferencia */
.transfer-info {
    text-align: left;
}

.transfer-info h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

#transfer_data_content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.btn-copy {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-copy:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-copy:active {
    transform: translateY(0);
}

.btn-copy.copied {
    background: #17a2b8;
}

.btn-copy.copied::after {
    content: " ¡Copiado!";
}