* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 25%, #90caf9 50%, #64b5f6 75%, #42a5f5 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 25%, #1e88e5 50%, #2196f3 75%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: -1px;
    margin-top: -1px;
    padding: 0px 1px;
}
.reserva {
     color: red;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #546e7a;
    font-weight: 500;
}


/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card h2 {
    color: #1565c0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.card h3 {
    color: #de1616;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.card h4 {
    color: #15910e;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-btn {
    background: #e3f2fd;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    background: #bbdefb;
    transform: scale(1.1);
}

#currentMonth {
    font-weight: 600;
    color: #424242;
    font-size: 1.1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: #757575;
    font-size: 0.9rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #424242;
}

.calendar-day:hover {
    background: #e3f2fd;
    transform: scale(1.1);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    font-weight: 600;
}

.calendar-day.disabled {
    color: #bdbdbd;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.disabled:hover {
    background: none;
    transform: none;
}



/* Form Styles */
.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #546e7a;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 5px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-outline {
    background: transparent;
    color: #1976d2;
    border: 2px solid #1976d2;
}

.btn-outline:hover:not(:disabled) {
    background: #e3f2fd;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Right Column */
.appointments-card {
    height: fit-content;
}

.appointments-list {
    max-height: 600px;
    overflow-y: auto;
}

.appointment-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2196f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.appointment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.appointment-item.attended {
    border-left-color: #4caf50;
    opacity: 0.8;
}

.appointment-info h3 {
    color: #424242;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.appointment-info p {
    color: #757575;
    margin-bottom: 5px;
}

.appointment-service {
    color: #1976d2 !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.appointment-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.appointment-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.appointment-checkbox input {
    display: none;
}

.appointment-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #757575;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.appointment-checkbox input:checked + .checkmark {
    background: #4caf50;
    border-color: #4caf50;
}

.appointment-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.appointment-checkbox-label {
    color: #757575;
    font-size: 0.9rem;
    cursor: pointer;
}

.appointment-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-delete, .btn-move-end {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
}

.btn-move-end {
    background: #ff9800;
    color: white;
}

.btn-move-end:hover {
    background: #f57c00;
}

.appointment-status {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1976d2;
}

.appointment-item.attended .appointment-status {
    color: #4caf50;
}

.no-appointments {
    text-align: center;
    color: #9e9e9e;
    font-style: italic;
    padding: 40px 20px;
}

/* Info Section */
.info-section {
    width: 50%;
    text-align: center;
    color: #546e7a;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}
    
    /*
.info-section {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-top: 20px;
}

.info-section p {
    color: #546e7a;
    margin-bottom: 5px;
    font-size: 0.9rem;
}*/


/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #f44336;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Error Message */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #f44336;
    font-weight: 500;
}

/* Scrollbar Styling */
.appointments-list::-webkit-scrollbar {
    width: 6px;
}

.appointments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.appointments-list::-webkit-scrollbar-thumb {
    background: #bbdefb;
    border-radius: 3px;
}

.appointments-list::-webkit-scrollbar-thumb:hover {
    background: #90caf9;
}

/* Responsive Adjustments */


.copyright{
    font-size: 0.8rem;
    color: #0b4560;
    margin-top: 8px;
    font-style:normal;
}
/* Estilos para la sección QR */
.qr-container {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(84, 110, 122, 0.3);
}

.qr-image {
     width: 50%;
     height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    border: 3px solid white;
}

.qr-image:hover {
    transform: scale(1.05);
}

.qr-caption {
    font-size: 0.8rem;
    color: #107f19;
    margin-top: 8px;
    margin-bottom: 5px;
    font-style: italic;
}

@media (max-width: 767px) {
    .info-section {
    width: 100%;
    }
    .form-buttons {
        flex-direction: column;
    }
    
    .appointment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .appointment-status {
        align-self: flex-end;
    }
    
    .appointment-actions {
        justify-content: flex-start;
    }
}

/* Ajustes responsive para la imagen QR */
/* Ajustes responsive para la imagen QR */
@media (max-width: 480px) {
    .info-section {
        width: 100%;
    }

    .qr-image {
        display: block; /* 1. Convierte la imagen en un elemento de bloque */
        width: 80%;     /* 2. Reduce el ancho para que no sea tan grande */
        max-width: 220px; /* 3. Establece un ancho máximo fijo */
        height: auto;
        margin: 15px auto; /* 4. Centra la imagen horizontalmente y añade margen vertical */
    }

    .qr-caption {
        font-size: 0.75rem;
    }
}

/* --- Tarjeta publicitaria Spa --- */
/* --- Tarjeta publicitaria Spa con fondo --- */
.promo-card {
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    border-left: 6px solid #42a5f5;
    line-height: 1.7;
    color: #ffffff;
   /* background: linear-gradient(135deg, rgba(21, 101, 192, 0.7), rgba(63, 81, 181, 0.7));*/
}
/* imagenes de https://unsplash.com/es/s/fotos/velas-aromaticas-masajes */
/* Imagen de fondo elegante difuminada */
.promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../fotos/velas1.jpg');
    background-size: cover;
    background-position: center;
    /*filter: blur(6px) brightness(0.7);*/
     filter: brightness(0.6); /* 🔆 más bajo = más oscuro (0.4 a 1) */
    z-index: 0;
}

/* Capa de color transparente para contraste */
.promo-card::after {
    content: "";
    position: absolute;
    inset: 0;
     background: rgba(0, 0, 0, 0.25); /* sombra muy suave opcional */
    /*background: linear-gradient(135deg, rgba(172, 200, 223, 0.5), rgba(103, 155, 213, 0.5));*/
    z-index: 1;
}

.promo-card * {
    position: relative;
    z-index: 2;
}

/* Títulos y texto */
.promo-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
     color: yellow;
    /*text-shadow: 1px 1px 3px white;*/
}

.promo-text {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #f5f5f5;
}

.promo-subtitle {
     color: yellow !important;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 20px !important;
  
}

.services-list {
    list-style: none;
    padding-left: 0;
}

.services-list li {
    margin-bottom: 8px;
    color: #e3f2fd;
    font-weight: 500;
}

.services-list li strong {
    color: yellow;
}

.promo-final {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #c8e6c9;
    font-weight: 500;
}

.promo-call {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fffde7;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}


/* Responsivo */
@media (max-width: 768px) {
    .promo-card {
        padding: 25px 18px;
    }
    .promo-card h2 {
        font-size: 1.3rem;
    }
   
}

/* Estilos para el botón Generar Citas */
.btn-generate-citas {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
    display: block;
}

.btn-generate-citas:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #2e7d32, #43a047);
}


.footer {
  background: linear-gradient(90deg, #0d0d0d, #1a1a1a);
  color: #fff;
  text-align: center;
  padding: 10px 10px;
  font-size: 0.8rem;
  letter-spacing: 0.9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .brand {
  font-weight: 600;
  color: #00c6ff;
}

.footer a {
  color: #00c6ff;
  text-decoration: none;
}

.footer a:hover {
  color: yellow;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer .phone {
  margin: 0 5px;
  color: #ccc;
}

@media (max-width: 600px) {
  .footer {
    font-size: 0.8rem;
    padding: 0px 5px;
  }
  .footer .phone {
    display: block;
    
    padding: 0px 5px;
    font-size: 0.7rem;
  }
}

