﻿/* ==========================================================================
   Estilos Globales
   ========================================================================== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar {
        display: none;
    }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    /*padding: 15px 20px;*/
    padding: 5px 10px 5px 10px;
    border-bottom: 1px solid #dee2e6;
    height: 120px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

    .logo img {
        height: 40px;
        vertical-align: middle;
    }

.login-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

    .login-link:hover {
        text-decoration: underline;
        background-color: #e6f0ff;
    }

.system-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    margin-left: 10px; /* Espacio entre logo y nombre en pantallas grandes */
}
/* ==========================================================================
   Sección de Sucursales
   ========================================================================== */
.sucursales-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

    .sucursales-section h1 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
    }

.sucursal-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

    .sucursal-card:hover {
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    }

.sucursal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
}

    .sucursal-header:hover {
        background-color: #f8f9fa;
    }

    .sucursal-header h2 {
        font-size: 1.8rem;
        font-weight: bold;
        color: #000;
        margin-bottom: 0;
    }

    .sucursal-header p {
        font-size: 1rem;
        color: #212529;
        margin-bottom: 0;
    }

.sucursal-body {
    /*padding: 20px;*/
    padding: 15px;
    border-top: 1px solid #dee2e6;
}

.sucursal-info {
    flex-grow: 1;
    padding-right: 10px;
}

.sucursal-chevron {
    width: 50px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .sucursal-chevron i {
        font-size: 1.2rem;
        color: #333;
    }

    .sucursal-chevron[aria-expanded="true"] i {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

/* ==========================================================================
   Información de Empleados
   ========================================================================== */
.empleado-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

    .empleado-card:hover {
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    }

.empleado-info {
    display: flex;
    align-items: center;
    /*margin-bottom: 0.5rem;*/
}

.empleado-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.empleado-details {
    flex: 1;
    margin-left: 15px;
}

    .empleado-details h3 {
        font-size: 1.2rem;
        font-weight: bold;
        color: #343a40;
        margin-bottom: 8px;
    }

.dias-laborables {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.dia-laboral {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background-color: #2c3941;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .dia-laboral:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn-reservar {
    display: inline-flex;
    align-items: center;
    background-color: #10a179;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

    .btn-reservar:hover {
        background-color: #0b7256;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .btn-reservar i {
        font-size: 1.1rem;
    }

/* ==========================================================================
   Wizard
   ========================================================================== */
.fa-check {
    color: #ddd;
}

.wizard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 5px 0px 5px;
    margin-bottom: 20rem;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
}

    .wizard-step span {
        display: inline-block;
        width: 30px;
        height: 30px;
        line-height: 30px;
        border-radius: 50%;
        background-color: #ddd;
        color: #fff;
        font-weight: 600;
        margin-bottom: 5px;
        transition: background-color 0.3s ease;
    }

    .wizard-step.active span {
        background-color: rgb(116, 149, 169);
    }

    .wizard-step.completed span {
        background-color: rgb(44, 57, 65);
    }

    .wizard-step.completed .fa-check {
        display: inline-block;
        color: #28a745;
        font-size: 25px;
    }

    .wizard-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 15px;
        left: 50%;
        width: 100%;
        height: 2px;
        background-color: #ddd;
        z-index: -1;
    }

    .wizard-step:not(:last-child).completed::after {
        background-color: rgb(44, 57, 65);
    }

    .wizard-step p {
        margin: 0;
        font-size: 0.9rem;
    }

.wizard-content {
    display: none;
}

    .wizard-content.active {
        display: block;
    }

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-wizard {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-wizard-prev {
    background-color: #6c757d;
    color: #fff;
}

    .btn-wizard-prev:hover {
        background-color: #5a6268;
    }

.btn-wizard-next {
    background-color: #007bff;
    color: #fff;
}

    .btn-wizard-next:hover {
        background-color: #0056b3;
    }

.btn-wizard-finish {
    background-color: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    border: 1px solid #6c757d;
}

    .btn-wizard-finish:hover {
        background-color: #218838;
    }

.btn-wizard-prev-subtle {
    position: absolute;
    left: 0;
    top: 55%;
    transform: translateY(-50%);
    padding: 5px 10px;
    font-size: 0.9rem;
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-wizard-prev-subtle:hover {
        background-color: rgb(44, 57, 65);
        color: #fff;
    }

/* ==========================================================================
   Option Card
   ========================================================================== */
.option-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .option-card:hover {
        border-color: #007bff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .option-card.selected {
        border-color: rgb(44, 57, 65);
        background-color: #e7f1ff;
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    }

    .option-card h5 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5px;
    }

    .option-card p {
        margin: 0;
    }

.servicio-duracion {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: normal;
}

/* ==========================================================================
   Date and Time Selector
   ========================================================================== */
#date-container {
    overflow: hidden;
}

.date-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.date-nav {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.date-list {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 10px 0;
    flex: 1;
    width: max-content;
}

.date-item {
    background-color: #f8f9fa;
    color: #000;
    height: 70px;
    border: none;
    border-radius: 30px;
    padding: 5px 10px;
    min-width: 40px;
    line-height: 1.2;
    font-size: 14px;
    justify-content: space-between;
}

    .date-item.selected {
        background-color: #28a745;
        color: #fff;
        padding: 0;
        line-height: 19px;
        margin-bottom: 5px;
    }

.date-day {
    margin-bottom: 5px;
    font-weight: 400;
    text-transform: initial;
    line-height: 19px;
    font-size: 14px;
}

.date-number {
    font-weight: bold;
}

.time-slots {
    margin: 10px 0px 10px 0px;
    text-align: center;
}

    .time-slots h3 {
        font-size: 16px;
        margin-bottom: 15px;
        font-weight: bold;
    }

.time-slot {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    margin: 5px;
    white-space: nowrap;
}

    .time-slot:hover,
    .time-slot.selected {
        background-color: #28a745;
        color: #fff;
    }

.date-time-container {
    text-align: center;
    margin-bottom: 1rem;
}

.date-time {
    display: inline-block;
    background-color: rgb(44, 57, 65);
    color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px 10px;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
    margin: 0 auto 1rem;
}

.date-item.mes-impar {
    
}

.date-item.mes-par {
    
}

.date-item.mes-impar:hover {
    background-color: rgba(230, 240, 250, 0.5);
}

.date-item.mes-par:hover {
    background-color: rgba(245, 235, 250, 0.5);
}

.date-item.selected {
    background-color: #28a745 !important;
}

.mes-grupo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0; 
    border-right: 1px solid;
    padding-right: 5px;
}

.meses-subtitulos {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-bottom: 8px;
}

.mes-subtitulo {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 4px;
    margin-bottom: 5px;
}

    .mes-subtitulo.mes-impar {
        color: #212529;
        border-bottom: 1px solid;
    }

    .mes-subtitulo.mes-par {
        color: #212529;
        border-bottom: 1px solid;
    }

.fechas-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

/* ==========================================================================
   Detalles del Turno
   ========================================================================== */
.turno-details {
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
}

.turno-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.turno-label {
    width: 120px;
    font-weight: bold;
    text-align: right;
    flex-shrink: 0;
}

.turno-value {
    text-align: left;
    flex-grow: 1;
    margin-left: 5px;
}

/* ==========================================================================
   Otros
   ========================================================================== */
.alert-error {
    max-width: 500px;
    margin: 0 auto 20px auto;
}

.error-message {
    color: #ff0000;
    font-size: 15px;
}

.fa-whatsapp {
    color: #28a745;
    font-size: 20px;
}

.whatsappContact {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
}

.igContact {
    color: #212529;
    text-decoration: none;
}

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

.mt-3 {
    margin-top: 1rem;
}

.header-section {
    position: relative;
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-container {
    height: 100px;
}

.logo-img {
    height: 100px;
    width: 100px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .btn-wizard-prev-subtle {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 4px 8px;
    }

    .sucursal-chevron {
        width: 40px;
    }

    .empleado-info {
        align-items: flex-start;
    }

    .empleado-avatar {
        width: 60px;
        height: 60px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .empleado-details h3 {
        font-size: 1rem;
    }

    .dia-laboral {
        padding: 5px;
        font-size: 0.7rem;
        background-color: #2c3941;
    }

    .btn-reservar {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

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

    .btn-wizard {
        width: auto;
        text-align: center;
    }

    .wizard-progress {
    }

    .wizard-step {
        margin-bottom: 15px;
    }

    .wizard-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .time-slot {
        font-size: 12px;
        padding: 8px;
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .sucursal-chevron {
        width: 40px;
    }

    /* Date and Time */
    .date-item {
        font-size: 12px;
    }

    .time-slot {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 520px) {
    #date-container {
        max-width: 100%;
        overflow-x: hidden;
        flex-wrap: nowrap !important;
    }

    .date-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        margin: 0;
        padding: 0;
    }

    .date-item {
        width: 50px;
        scroll-snap-align: start;
    }

    .date-list::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 450px) {
    .sucursales-section h1 {
        margin-left: 30px;
        font-size: 1.5rem;
    }

    .sucursales-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .header {
        display: block;
        padding: 10px 15px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .system-name {
        /*display: block;*/
        font-size: 1.2rem;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .header-content {
        display: block;
        text-align: right;
    }

    .login-link {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .header-content {
        display: none;
    }
}

/* ==========================================================================
   LOADER
   ========================================================================== */

.loader {
    display: flex;
    text-align: center;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.glitch {
    position: relative;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    letter-spacing: 5px;
    z-index: 1;
    animation: shift 1s ease-in-out infinite alternate;
}

    .glitch:before,
    .glitch:after {
        display: block;
        content: attr(data-glitch);
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0.8;
    }

    .glitch:before {
        animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.50) both infinite;
        color: #8b00ff;
        z-index: -1;
    }

    .glitch:after {
        animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.50) reverse both infinite;
        color: #00e571;
        z-index: -2;
    }

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    to {
        transform: translate(0);
    }
}

@keyframes shift {
    0%, 40%, 44%, 58%, 61%, 65%, 69%, 73%, 100% {
        transform: skewX(0deg);
    }

    41% {
        transform: skewX(5deg);
    }

    42% {
        transform: skewX(-5deg);
    }

    59% {
        transform: skewX(20deg) skewY(5deg);
    }

    60% {
        transform: skewX(-20deg) skewY(-5deg);
    }

    63% {
        transform: skewX(10deg) skewY(-5deg);
    }

    70% {
        transform: skewX(-50deg) skewY(-20deg);
    }

    71% {
        transform: skewX(10deg) skewY(-10deg);
    }
}