:root {
    --primary-color: #16727e;
    --secondary-color: #ff4f9d;
    --accent-color: #ff4f9d;
    --light-color: #f8f9fa;
    --dark-color: #2d3748;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --gradient-primary: linear-gradient(135deg, #16727e 0%, #1a9cb0 100%);
    --gradient-accent: linear-gradient(135deg, #ff4f9d 0%, #ff7eb3 100%);
}

/* Efecto Glass */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: var(--glass-border);
    box-shadow: var(--box-shadow);
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Transiciones mejoradas */
.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: var(--border-radius);
}
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gradient-accent);
}

.error-message i {
    font-size: 4rem;
    color: var(--danger-color);
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.error-message h3 {
    margin-bottom: 10px;
}

.error-message p {
    margin-bottom: 20px;
}

.btn-retry {
    background-color: var(--danger-color);
    margin-top: 15px;
}

.btn-retry:hover {
    background-color: #c82333;
}

.small {
    font-size: 0.8rem;
    margin-top: 20px;
    color: #666;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.logo p {
    color: var(--dark-color);
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px auto 30px;
    position: relative;
    max-width: 600px;
    gap: 5px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(22, 114, 126, 0.1) 100%);
    z-index: 1;
    border-radius: 2px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.step span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid #e0e0e0;
    margin-bottom: 5px;
}

.step p {
    font-size: 0.7rem;
    color: #999;
    text-align: center;
    transition: var(--transition);
    display: none; /* Ocultamos las etiquetas por defecto */
}

.step.active span {
    border-color: var(--primary-color);
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.step.completed span {
    border-color: var(--primary-color);
    background: var(--gradient-primary);
    color: white;
}

.booking-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    min-height: 400px;
}

/* Añade esta clase al contenedor principal para mejor espaciado */
.booking-flow-container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.step-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.step-description {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    border: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    height: 8px;
    background: var(--gradient-accent);
}

.service-card.selected {
    border: 2px solid var(--secondary-color);
    background-color: rgba(255, 79, 157, 0.05);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.service-card .duration {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-card .description {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-align: left;
}

.complement-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.complement-card:hover {
    border-color: var(--primary-color);
}

.complement-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(22, 114, 126, 0.05);
}

.complement-card input[type="checkbox"] {
    margin-right: 15px;
}

.complement-info {
    flex-grow: 1;
}

.complement-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.complement-info .complement-price {
    color: var(--accent-color);
    font-weight: 600;
}

.provider-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.provider-card:hover {
    border-color: var(--primary-color);
}

.provider-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(22, 114, 126, 0.05);
}

.provider-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #e0e0e0;
}

.provider-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.booking-container, .service-grid, .calendar-container, .form-container {
    position: relative;
}
.calendar-container {
    max-width: 400px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calendar-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-bottom: 20px;
}
.calendar-grid > div:nth-child(7n) {
  display: none;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.calendar-day {
    text-align: center;
    padding: 12px 4px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background-color: rgba(22, 114, 126, 0.1);
    transform: scale(1.1);
}

.calendar-day.selected {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(22, 114, 126, 0.3);
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background-color: rgba(22, 114, 126, 0.1);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.no-slots-available {
    text-align: center;
    font-size: 0.8em;
    padding: 20px;
    color: #666;
}

.no-slots-available i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.error-message {
    text-align: center;
    padding: 15px;
    color: #dc3545;
}

.error-message i {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.btn-retry {
    margin-top: 10px;
    padding: 5px 15px;
    font-size: 0.9em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: 'Lato', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(22, 114, 126, 0.2);
}

.customer-suggestions {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 10;
    display: none;
}

.customer-suggestion {
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.customer-suggestion:hover {
    background-color: #f5f5f5;
}

.summary-card {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item .label {
    font-weight: 500;
    color: var(--primary-color);
}

.summary-item .value {
    font-weight: 600;
}

.total-price {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(22, 114, 126, 0.3);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 114, 126, 0.4);
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: var(--gradient-accent);
    box-shadow: 0 4px 15px rgba(255, 79, 157, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(255, 79, 157, 0.4);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #218838;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    justify-content: center;
}

.success-message {
    text-align: center;
    padding: 50px 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gradient-primary);
}

.success-message i {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

.success-message h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.success-message p {
    margin-bottom: 25px;
    color: #666;
    font-size: 1.1rem;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    opacity: 0;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(22, 114, 126, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    animation: spin 1.2s linear infinite;
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid rgba(255, 79, 157, 0.1);
    border-radius: 50%;
    animation: spin-reverse 1.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    to { transform: rotate(-360deg); }
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
        background: var(--primary-color);
    }
    40% { 
        transform: scale(1);
        background: var(--secondary-color);
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        display: none;
    }
    
    .header {
        margin-bottom: 10px;
    }
    
    .booking-container {
        margin-top: 0;
        padding: 20px 15px;
    }
    
    .date-time-selector {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-secondary {
        padding: 8px 14px; /* Aún más compacto */
        font-size: 0.85rem;
    }
    
    /* Grupo de botones en móvil */
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
        .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .loading-spinner::after {
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    
        .service-card, .provider-card, .complement-card {
        padding: 15px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card .price {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .btn-secondary {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .logo h1 {
        font-size: 2.2rem;
    }
    
    .step {
        flex: 0 0 100%;
    }
    
    .calendar-day {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
    
    .time-slot {
        padding: 10px;
        font-size: 0.9rem;
    }
}
/* Ajustes para pantallas muy grandes */
@media (min-width: 1200px) {
    .step p {
        font-size: 0.7rem;
    }
}
/* Estilos para complementos */
.complements-list {
    margin: 20px 0;
}

.complement-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complement-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(22, 114, 126, 0.05);
}

.complement-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(22, 114, 126, 0.1);
}

.complement-checkbox {
    display: flex;
    align-items: center;
    margin-right: 15px;
    position: relative;
}

.complement-checkbox input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.complement-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.complement-checkbox input:checked ~ .checkmark::after {
    content: "✓";
    color: white;
    position: absolute;
    left: 4px;
    top: -2px;
}

.complement-info {
    flex-grow: 1;
}

.complement-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark-color);
}

.complement-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
}

.complement-details .price {
    color: var(--accent-color);
    font-weight: 600;
}

.complement-details .duration {
    color: #666;
}

.no-complements {
    text-align: center;
    padding: 20px;
    color: #666;
}

.no-complements i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Estilos para el resumen */
.summary-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.summary-section h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 600;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Estilos para categorías */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.category-card {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-card.selected {
    border-color: #4a6cf7;
    background-color: #f5f8ff;
}

.category-card h3 {
    margin-top: 0;
    color: #333;
}

.category-card .description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 0;
}

/* Selector de fecha/hora mejorado */
.date-time-selector {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 30px;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.date-picker input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Lato', sans-serif;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.time-slot.selected {
    background: var(--gradient-accent);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 79, 157, 0.3);
}

.duration-info {
    grid-column: 1 / -1;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
}

.duration-info p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .date-time-selector {
        grid-template-columns: 1fr;
    }
}