* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.box {
    width: 85%;
    max-width: 1200px;
    min-width: 320px;
}

.logo {
    margin: 20px 0;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: calc(100% - 80px);
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo img {
    margin-right: 15px;
    width: 50px;
    height: 50px;
}

.logo span {
    font-size: 24px;
    font-weight: 600;
    background: #0066FF;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.card {
    margin: 25px 0;
    width: calc(100% - 80px);
    padding: 35px 45px;
    padding-bottom: 30px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 500;
    color: #34495e;
    text-align: left;
}

.upload {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 120px;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px dashed rgba(0, 102, 255, 0.2);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    position: relative;
}

.upload::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 3px;
    background: linear-gradient(135deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    transition: all 0.4s ease;
}

.upload:hover {
    background: rgba(240, 247, 255, 0.8);
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
}

.upload:hover::before {
    background: linear-gradient(135deg, #0066FF, rgba(0, 180, 216, 0.3), #0066FF);
}

.upload.dragover {
    background: rgba(240, 247, 255, 0.9);
    border-color: #0066FF;
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.25);
}

.upload .entry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload svg {
    margin-right: 12px;
    width: 32px;
    height: 32px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.upload:hover svg {
    opacity: 0.8;
    transform: scale(1.1);
}

.upload .accent {
    color: #0066FF;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.upload:hover {
    cursor: pointer;
}

.upload:hover .accent {
    text-decoration: underline;
    color: #0056e0;
}

.previews {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    overflow-x: scroll;
}

.previews .container {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: auto;
}
  
.previews::-webkit-scrollbar {
    height: 13px;
}
  
.previews::-webkit-scrollbar-corner {
    background: transparent;
}
  
.previews::-webkit-scrollbar-track {
    background: transparent;
}
  
.previews::-webkit-scrollbar {
    background: transparent;
}

.previews::-webkit-scrollbar-thumb {
    background: rgba(155, 155, 155, 0.8);
    border-radius: 10px;
}

.previews .preview {
    position: relative;
    margin-top: 20px;
    margin-right: 10px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: rgb(145, 145, 145);
    border-radius: 10px;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.previews .preview:last-child {
    margin-right: 0;
}

.previews .preview img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

.previews .preview video {
    width: auto;
    height: 100%;
}

.previews .preview .close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 13px;
    height: 13px;
    padding: 7px;
    transition: .5s;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    cursor: pointer;
}

.previews .preview .close:hover {
    background: rgba(211, 211, 211, 0.5);
}

.upload-logo .previews .preview img {
    border-radius: 50%;
}

.warning {
    margin-top: 15px;
    font-size: 14px;
    color: rgb(145, 145, 145);
}

.inputs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.bi-inputs-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.tri-inputs-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.quatri-inputs-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.fifty {
    width: calc(50% - 20px);
}

.inputs .input-card {
    margin-bottom: 20px;
    width: calc(50% - 20px);
}

.inputs .input-card h3 {
    margin-bottom: 10px;
}

.tri-inputs-card .input-card {
    width: calc(100%/3 - 20px);
}

.quatri-inputs-card .input-card {
    width: calc(100%/4 - 20px);
}

/* Estilos para el mapa de ubicación */
.map-location-card {
    width: 100%;
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 2px solid rgba(108, 117, 125, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.map-location-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.1);
}

.map-location-card h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.single-input-card {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.single-input-card .input-card {
    width: calc(33.33% - 20px);
}

.inputs .input-card .input {
    border: 2px solid rgba(108, 117, 125, 0.15);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.inputs .input-card .input:hover {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.inputs .input-card .input:focus-within {
    border-color: #0066FF;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: white;
}

.inputs .input-card .input {
    border: 2px solid rgba(108, 117, 125, 0.15);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.inputs .input-card .input:hover {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.inputs .input-card .input:focus-within {
    border-color: #0066FF;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: white;
}

.inputs .input-card .input input {
    width: 100%;
    height: 45px;
    border: none;
    outline: none;
    padding: 0 15px;
    background: transparent;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.inputs .input-card .input input::placeholder {
    color: #95a5a6;
    font-weight: 300;
}

.inputs .input-card .input select {
    width: 100%;
    height: 45px;
    border: none;
    outline: none;
    padding: 0 15px;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    color: #2c3e50;
}

.inputs .input-card .input select:focus {
    outline: none;
}

.inputs .input-card .input textarea {
    width: calc(100% - 30px);
    border: none;
    outline: none;
    padding: 15px;
    resize: vertical;
    min-height: 80px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    color: #2c3e50;
    background: transparent;
    line-height: 1.5;
}

.inputs .input-card .input textarea::placeholder {
    color: #95a5a6;
    font-weight: 300;
}

.inputs .input-card h3 {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #34495e;
    letter-spacing: 0.3px;
}

/* Estilos para inputs de color */
.color-input {
    display: flex;
    align-items: center;
    padding: 8px 10px !important;
}

.color-input input[type="color"] {
    width: 50px !important;
    height: 30px !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.color-label {
    font-size: 12px;
    color: #666;
}

/* Nuevos estilos para inputs de color combinados */
.color-input-combined {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px !important;
    flex-wrap: wrap;
}

.color-input-combined input[type="color"] {
    width: 50px !important;
    height: 35px !important;
    border: 2px solid rgba(209, 217, 230, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.color-input-combined input[type="color"]:hover {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.color-input-combined input[type="text"] {
    width: 90px !important;
    height: 35px !important;
    border: 2px solid rgba(209, 217, 230, 0.5);
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
    font-family: monospace;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.color-input-combined input[type="text"]:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background: white;
}

.color-input-combined .color-label {
    font-size: 11px;
    color: #666;
    flex: 1;
    min-width: 100%;
    margin-top: 5px;
}

/* Estilos para inputs con ayuda */
.input-help {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    padding: 0 10px;
    font-style: italic;
}

/* Estilos para listas dinámicas */
.input-card.full-width {
    width: 100%;
}

.dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.dynamic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 15px;
    border-radius: 12px;
    border: 2px solid rgba(108, 117, 125, 0.15);
    transition: all 0.3s ease;
}

.dynamic-item:hover {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.dynamic-item input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 15px;
    color: #2c3e50;
    outline: none;
}

.dynamic-item input::placeholder {
    color: #95a5a6;
}

.remove-item-btn {
    background: rgba(231, 76, 60, 0.1);
    border: none;
    color: #e74c3c;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-item-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
}

.add-item-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(52, 152, 219, 0.1));
    border: 2px dashed rgba(0, 102, 255, 0.3);
    border-radius: 12px;
    color: #0066FF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-item-btn:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(52, 152, 219, 0.15));
    border-color: #0066FF;
    transform: translateY(-2px);
}

.add-item-btn svg {
    width: 20px;
    height: 20px;
}

/* Estilos para mesas por ambiente */
.space-tables-group {
    background: rgba(248, 249, 250, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(108, 117, 125, 0.1);
}

.space-tables-group h4 {
    color: #0066FF;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.space-tables-group h4::before {
    content: "📍";
    font-size: 18px;
}

.tables-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.table-item {
    display: grid;
    grid-template-columns: 1fr 120px 40px;
    gap: 10px;
    align-items: center;
    background: white;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(108, 117, 125, 0.15);
}

.table-item input {
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.table-item input:focus {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.table-item input[type="number"] {
    text-align: center;
}

.table-item .remove-item-btn {
    width: 28px;
    height: 28px;
}

/* Mensaje de lista vacía de mesas */
.empty-tables-message {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.05), rgba(189, 195, 199, 0.05));
    border: 2px dashed rgba(149, 165, 166, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    color: #7f8c8d;
}

.empty-tables-message svg {
    margin: 0 auto 15px;
    opacity: 0.6;
}

.empty-tables-message h4 {
    font-size: 18px;
    color: #95a5a6;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-tables-message p {
    font-size: 14px;
    line-height: 1.6;
    color: #95a5a6;
    max-width: 500px;
    margin: 0 auto;
}

/* Estilos para secciones */
.section-title {
    width: 100%;
    margin-top: 35px;
    margin-bottom: 25px;
}

.section-title:first-child {
    margin-top: 0;
}

.section-title h3 {
    color: #34495e;
    border-bottom: 3px solid rgba(0, 102, 255, 0.2);
    padding-bottom: 8px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    /*width: 40px;*/
    height: 3px;
    background: linear-gradient(90deg, #0066FF, #00B4D8);
    border-radius: 2px;
}

/* Estilos para toggles de servicios modernos */
.service-toggles {
    gap: 20px;
}

.service-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.15);
    transform: translateY(-3px);
}

.service-card:hover::before {
    background: linear-gradient(90deg, #0066FF, #00B4D8, #0066FF);
}

.service-toggle {
    width: 100%;
}

.service-checkbox {
    display: none;
}

.service-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 18px;
    position: relative;
    width: 100%;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-label:hover {
    background: rgba(0, 102, 255, 0.03);
}

.checkbox-custom {
    position: relative;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d9e6;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #0066FF, #00B4D8);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 102, 255, 0.3);
}

.service-checkbox:checked + .service-label .checkbox-custom {
    border-color: #0066FF;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
    transform: scale(1.05);
}

.service-checkbox:checked + .service-label .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.service-checkbox:checked + .service-label .service-info h3 {
    color: #0066FF;
}

.service-checkbox:checked + .service-label {
    background: rgba(0, 102, 255, 0.05);
}

.service-info {
    flex: 1;
}

.service-info h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 500;
    color: #34495e;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.service-info p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
    font-weight: 300;
}

/* Efecto hover para el checkbox */
.service-label:hover .checkbox-custom {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    transform: scale(1.02);
}

/* Animación para cuando se selecciona */
.service-checkbox:checked + .service-label .checkbox-custom {
    animation: checkboxPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkboxPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.05); }
}

/* Estados de la tarjeta según el checkbox */
.service-card:has(.service-checkbox:checked) {
    background: rgba(240, 247, 255, 0.8);
    border-color: rgba(0, 102, 255, 0.4);
}

.service-card:has(.service-checkbox:checked)::before {
    background: linear-gradient(90deg, #0066FF, #00B4D8, #0066FF);
}

.service-card:has(.service-checkbox:not(:checked)) {
    opacity: 0.85;
}

.service-card:has(.service-checkbox:not(:checked)):hover {
    opacity: 1;
}

/* Fallback para navegadores que no soportan :has() */
@supports not (selector(:has(*))) {
    .service-card.checked {
        background: linear-gradient(145deg, #f0f7ff, #ffffff);
        border-color: rgba(0, 102, 255, 0.3);
    }
    
    .service-card.unchecked {
        opacity: 0.7;
        background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    }
    
    .service-card.unchecked:hover {
        opacity: 1;
        transform: none;
    }
}

/* Estilos para contenedor de horarios de ancho completo */
.schedule-full-width {
    width: 100% !important;
    margin-bottom: 20px;
}

/* Estilos para el sistema de horarios */
.schedule-container {
    border: 2px solid rgba(0, 102, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.schedule-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.schedule-controls .button {
    width: auto;
    padding: 0 20px;
    height: 42px;
    font-size: 14px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.schedule-controls .button:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.schedule-grid {
    display: grid;
    gap: 15px;
}

.schedule-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.schedule-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    transition: all 0.4s ease;
}

.schedule-day:hover {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.12);
    transform: translateY(-2px);
}

.schedule-day:hover::before {
    background: linear-gradient(90deg, #0066FF, #00B4D8, #0066FF);
}

.schedule-day.inactive {
    opacity: 0.6;
    background: rgba(248, 249, 250, 0.8);
    transform: none;
}

.schedule-day.inactive:hover {
    transform: none;
    border-color: rgba(222, 226, 230, 0.5);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.schedule-day.inactive::before {
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

.day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.day-header:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.day-label {
    font-weight: 500;
    color: #34495e;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
    user-select: none;
    min-width: 60px;
}

.day-label:hover {
    color: #0066FF;
}

.day-active {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #0066FF;
    position: relative;
    appearance: none;
    border: 2px solid #d1d9e6;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.day-active:hover {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
    transform: scale(1.05);
}

.day-active:checked {
    background: #0066FF;
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.day-active:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.day-times {
    display: flex;
    align-items: center;
    gap: 20px;
}

.time-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-group input[type="time"] {
    padding: 12px 15px;
    border: 2px solid rgba(209, 217, 230, 0.5);
    border-radius: 12px;
    font-size: 14px;
    width: 140px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    backdrop-filter: blur(10px);
    color: #34495e;
}

.time-group input[type="time"]:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: white;
}

.time-group input[type="time"]:disabled {
    background: rgba(248, 249, 250, 0.8);
    color: #95a5a6;
    cursor: not-allowed;
    border-color: rgba(233, 236, 239, 0.5);
}

.time-separator {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 14px;
    margin: 0 3px;
}

.day-actions {
    display: flex;
    gap: 10px;
}

.btn-copy {
    background: linear-gradient(135deg, #0066FF, #00B4D8);
    border: none;
    border-radius: 12px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-copy:hover {
    background: linear-gradient(135deg, #0056e0, #0099cc);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.btn-copy:active {
    transform: scale(0.95);
}

.btn-copy:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 45px;
    color: white;
    text-align: center;
    border-radius: 15px;
    background: #0066FF;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.button:hover::before {
    left: 100%;
}

.inputs .input-card .button {
    width: 100%;
    letter-spacing: 0.8px;
}

.button:hover {
    background: linear-gradient(135deg, #0056e0, #0099cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.button.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.button.red:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.button.green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.button.green:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.container-products {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: top;
    width: calc(100% - 20px);
    padding: 10px;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 40px;
}

.container-products .plate {
    position: relative;
    margin: 10px;
    width: 250px;
    height: 260px;
    padding: 5px;
    background-color: white;
    border-radius: 25px;
    /*box-shadow: 1px 1px 20px #979797;*/
    border: 2px solid rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.container-products .plate:hover {
    cursor: pointer;
    background: #e5effd;
}

.container-products .plate .image-plate {
    position: relative;
    margin-top: 5px;
    margin-left: 5px;
    width: calc(100% - 10px);
    height: 150px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    transition: .3s;
    overflow: hidden;
}

.container-products .plate.hide .image-plate {
    filter: brightness(0.5);
}

.container-products .plate.active {
    border: 3px solid #0066FF;
}

.container-products .plate .image-plate .select {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid #d4d4d4;
    opacity: 0.0;
    transition: .5s;
}

.container-products .plate .image-plate:hover .select {
    opacity: 1.0;
}

.container-products .plate .image-plate .select ion-icon {
    display: none;
    color: white;
}

.container-products .plate .image-plate .select:hover {
    border-color: #d4d4d47e;
    background: #d4d4d47e;
}

.container-products .plate .image-plate .select.active {
    border-color: #0066FF;
    background: #0066FF;
    box-shadow: 0px 0px 3px #4e4e4e;
    cursor: pointer;
    opacity: 1.0;
}

.container-products .plate .image-plate .select.active ion-icon {
    display: block;
}

.container-products .plate .info-plate {
    position: relative;
    margin-top: 10px;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    font-weight: normal;
    color: #282828;
    -webkit-user-select: none;
    user-select: none;
}

.container-products .plate .info-plate .content-info {
    position: relative;
    height: 65px;
    overflow: scroll;
}

.container-products .plate .info-plate .content-info::-webkit-scrollbar {
    display: none;
}

.container-products .plate .info-plate .content-info .top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.container-products .plate .info-plate .content-info .top .name {
    color: black;
}

.container-products .plate .info-plate .content-info p {
    font-size: 0.9em;
}

.container-products .plate .info-plate .discount {
    color: #0066FF;
}

.container-products .plate .info-plate .info {
    margin-top: 10px;
}

.container-products .plate.active .info-plate .content-info  {
    color: #0066FF;
}

.container-products .plate .info-plate .footer {
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.container-products .plate .info-plate .footer .review {
    margin-top: -3px;
    margin-right: 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 30px;
    background: #0066FF;
    border-radius: 15px;
    cursor: pointer;
}

.container-products .plate .info-plate .footer .review img {
    width: 20px;
    height: 20px;
}


.container-products .plate .info-plate .footer .price {
    display: flex;
    flex-direction: row;
    color: #0066FF;
    text-align: left;
}

.container-products .plate .hidelabel {
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    padding: 5px 10px;
    background: white;
    color: black;
    border-radius: 30px;
}

.container-products .plate.hide .hidelabel {
    display: block;
    cursor: pointer;
}

.container-products .plate.hide .hidelabel:hover {
    color: #0066FF;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: .5s;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal .product-card {
    display: none;
    flex-direction: column;
    justify-content: start;
    width: 450px;
    height: 90%;
    padding: 20px;
    background: white;
    border-radius: 20px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.modal .option-card {
    display: none;
    flex-direction: column;
    justify-content: start;
    width: 450px;
    height: 90%;
    padding: 20px;
    background: white;
    border-radius: 20px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.modal .product-card .product-container {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.modal .product-card::-webkit-scrollbar {
    display: none;
}

.modal .option-card::-webkit-scrollbar {
    display: none;
}

.modal .product-card.active {
    display: flex;
}

.modal .option-card.active {
    display: flex;
}

.product-card .header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.product-card .header svg {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-card .header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.option-card .header svg {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-card .subtitle {
    width: 100%;
}

.product-card .upload {
    margin-top: 10px;
    min-height: 100px;
    max-height: 100px;
}

.product-card .inputs {
    margin-top: 20px;
}

.product-card .bi-input-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.product-card .inputs .input-card {
    width: 100%;
}

.product-card .bi-input-card .input-card {
    width: calc(50% - 6px);
}

.product-card .inputs .input-card .input {
    position: relative;
}

.product-card .inputs .input-card .input .discount-type {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    flex-direction: row;
    width: 60px;
    height: calc(100% - 10px);
    border-radius: 5px;
}

.product-card .inputs .input-card .input .discount-type .type {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    font-size: 0.9em;
    border-radius: 20px;
    cursor: pointer;
}

.product-card .inputs .input-card .input .discount-type .type:hover {
    background: rgba(0, 0, 0, 0.2);
}

.product-card .inputs .input-card .input .discount-type .type.active {
    background: #0066FF;
    color: white;
    cursor: default;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.buttons .button {
    width: calc(50% - 10px);
}

.product-card .inputs .buttons .button {
    width: calc(50% - 10px);
    height: 40px;
    border-radius: 10px;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    background: white;
    color: black;
}

.product-card .inputs .buttons .button:hover {
    background: #0066FF;
    color: white;
    border-color: white;
}

.product-card .inputs .buttons .button.active {
    background: #0066FF;
    color: white;
    border-color: white;
}

.product-card .inputs .buttons .button.active:hover {
    background: #014fc5;
}

.product-card .personalizer {
    width: 100%;
}

.product-card .personalizer .button {
    margin-top: 10px;
    width: 100%;
}

.check {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

.submit .check {
    margin-top: 0;
    margin-bottom: 20px;
}

.check input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.check span {
    margin-left: 10px;
    cursor: pointer;
}

.product-card .add-product {
    margin-top: 20px;
    width: 100%;
    min-height: 40px;
}

.progress-card {
    display: none;
    width: 300px;
    padding: 20px;
    background: white;
    border-radius: 20px;
}

.progress-card.active {
    display: block;
}

.progress-card h2 {
    margin-top: 5px;
    margin-bottom: 20px;
}

.progressbar {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 100%;
    height: 10px;
    border-radius: 5px;
}

.progressbar .progress-value {
    width: 0%;
    height: 10px;
    border-radius: 5px;
    background: #0066FF;
}

.progress {
    margin-top: 5px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #303030;
}

.completion {
    display: none;
    width: 600px;
    max-height: 90%;
    border-radius: 20px;
    background: white;
    padding: 30px 40px;
    overflow-y: scroll;
}

.completion.active {
    display: block;
}

.completion .button {
    margin-top: 20px;
    width: 100%;
}

.completion .buttons .button {
    width: calc(50% - 10px);
}

.error {
    display: none;
    width: 300px;
    border-radius: 20px;
    background: white;
    padding: 30px 40px;
}

.error.active {
    display: block;
}

.error h2 {
    font-size: 17px;
    color: red;
}

.error .button {
    margin-top: 20px;
    width: 100%;
    background: red;
}
    
/* Estilos para el modal de pago */
.modal.pay .pay-card {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    width: 540px;
    max-width: calc(100% - 40px);
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(2,6,23,0.18);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.modal.pay.active .pay-card {
    display: flex;
}

.modal.pay .pay-card .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.modal.pay .pay-card .header h2 {
    font-size: 20px;
    color: #233044;
    margin: 0;
}

.modal.pay .pay-card .header svg.close {
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0.8;
}

.modal.pay .pay-card .inputs {
    padding: 8px 4px 12px 4px;
    flex-direction: column;
}

.modal.pay #pay-modal-qr {
    width: 320px;
    /*height: 220px;*/
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    background: white;
}

.modal.pay #pay-modal-phone {
    font-size: 18px;
    color: #0b2545;
    background: #f3f8ff;
    padding: 8px 12px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid rgba(0,102,255,0.06);
}

.modal.pay .pay-card .button {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(2,6,23,0.06);
}

.modal.pay .pay-card .button[style*="background:#ccc"] {
    background: #f1f1f1 !important;
    color: #333 !important;
}

.modal.pay .pay-card .button[style*="background:#0066FF"] {
    background: linear-gradient(90deg,#007bff,#0056e0) !important;
    color: #fff !important;
    width: 300px;
}

@media screen and (max-width: 740px) {

    .box {
        width: calc(100% - 30px);
        margin: 0 15px;
        min-width: 280px;
    }

    .card {
        width: 100%;
        padding: 25px 30px;
        border-radius: 20px;
    }

    .logo {
        width: 100%;
    }

    .card h2 {
        margin-top: 10px;
    }

    .upload {
        flex-direction: column;
        height: 100px;
        border-radius: 15px;
    }

    .upload div {
        margin-top: 8px;
        text-align: center;
        font-size: 14px;
    }

    .inputs .input-card {
        width: 100%;
    }
    
    .tri-inputs-card .input-card {
        width: 100%;
    }

    .single-input-card .input-card {
        width: 100%;
    }

    .map-location-card {
        padding: 20px;
    }

    #map {
        height: 300px !important;
    }
    
    .service-toggles {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-card {
        width: 100%;
        padding: 18px;
    }
    
    .service-label {
        gap: 12px;
    }
    
    .checkbox-custom {
        width: 22px;
        height: 22px;
    }
    
    .checkbox-custom::after {
        width: 7px;
        height: 7px;
    }
    
    .service-info h3 {
        font-size: 15px;
    }
    
    .service-info p {
        font-size: 12px;
    }
    
    .table-item {
        grid-template-columns: 1fr 90px 36px;
        gap: 8px;
        padding: 8px 10px;
    }
    
    .table-item input {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .space-tables-group {
        padding: 15px;
    }
    
    .space-tables-group h4 {
        font-size: 15px;
    }
    
    .add-item-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .schedule-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 18px 20px;
    }

    .day-header {
        width: 100%;
        justify-content: space-between;
        padding: 6px 10px;
        min-width: auto;
    }

    .day-label {
        font-size: 14px;
        min-width: auto;
    }

    .day-active {
        width: 22px;
        height: 22px;
    }

    .day-active:checked::after {
        font-size: 12px;
    }

    .day-times {
        width: 100%;
        justify-content: space-between;
    }

    .time-group {
        flex: 1;
        justify-content: center;
    }

    .time-group input[type="time"] {
        width: 100px;
    }

    .schedule-controls {
        justify-content: center;
    }

    .schedule-controls .button {
        width: 140px;
    }

    .color-input {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px !important;
    }

    .color-input input[type="color"] {
        margin-bottom: 8px;
        margin-right: 0;
    }

    .modal .product-card {
        width: calc(100% - 40px);
        height: 100%;
        border-radius: 0;
    }

    @media (max-width: 640px) {
        .modal.pay .pay-card { width: calc(100% - 30px); padding: 16px; }
        .modal.pay #pay-modal-qr { width: 160px; height: 160px; }
        .modal.pay #pay-modal-phone { font-size: 16px; }
    }

    .completion {
        width: 100%;
        height: 100%;
        padding: 20px;
        overflow: scroll;
        border-radius: 0;
    }

    .error {
        width: 100%;
    }

    .section-title h3 {
        font-size: 16px;
    }

    .input-help {
        font-size: 10px;
    }

    .button {
        width: 100%;
        height: 50px;
    }
    
    .quatri-inputs-card .input-card {
        width: 100%;
    }
    
    .bi-inputs-card .input-card {
        width: 100%;
    }

    .fifty {
        width: 100%;
    }

    .container-products {
        flex-direction: column;
    }

    .container-products .plate {
        width: calc(100% - 35px);
    }

    .button {
        width: 100%;
        height: 50px;
    }

    .service-toggles {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-card {
        width: 100%;
        padding: 20px 18px;
        border-radius: 15px;
    }

    .schedule-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .day-header {
        width: 100%;
        justify-content: space-between;
    }

    .day-times {
        width: 100%;
        justify-content: space-between;
    }

    .time-group {
        flex: 1;
        justify-content: center;
    }

    .time-group input[type="time"] {
        width: 100px;
    }

    .schedule-controls {
        justify-content: center;
    }

    .schedule-controls .button {
        width: 140px;
    }

    .color-input {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px !important;
    }

    .color-input input[type="color"] {
        margin-bottom: 8px;
        margin-right: 0;
    }

    /* Estilos responsive para inputs de color combinados */
    .color-input-combined {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 10px !important;
    }

    .color-input-combined input[type="color"] {
        width: 60px !important;
        height: 40px !important;
    }

    .color-input-combined input[type="text"] {
        width: 100px !important;
        height: 40px !important;
        font-size: 14px;
    }

    .color-input-combined .color-label {
        margin-top: 0;
        font-size: 12px;
    }

    /* Horarios sin padding/borde en móvil */
    .schedule-container {
        border: none;
        border-radius: 0;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        margin: 0;
    }

    .schedule-controls {
        padding: 0;
        margin-bottom: 20px;
    }

    .schedule-grid {
        gap: 12px;
    }

    .btn-copy {
        display: none;
    }
}