@font-face {
    font-family: 'Inter';
    src: url('../../resource/fonts/Inter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Estilos generales */
body {
    font-family: 'Inter';
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.headNav{
    font-family: 'PlayfairDisplay';
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-foot {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #9B8776;
    color: white;
    padding: 10px 0;
}

header h1 {
    margin: 0;
}

/* Login */
.login-container {
    max-width: 500px;
    margin: 35px auto;
    padding: 30px;
    background: #9B8776;
}

.form_container {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 50px 40px 20px 40px;
    background-color: #ffffff;
    border-radius: 11px;
    font-family: "Inter", sans-serif;
}


.title_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #212121;
}

.subtitle {
    font-size: 0.725rem;
    max-width: 80%;
    text-align: center;
    line-height: 1.1rem;
    color: #8B8E98
}

.input_container {
    width: 100%;
    height: fit-content;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.icon {
    width: 20px;
    position: absolute;
    z-index: 99;
    left: 12px;
    bottom: 9px;
}

.input_label {
    font-size: 0.75rem;
    color: #8B8E98;
    font-weight: 600;
}

.input_field {
    width: auto;
    height: 40px;
    padding: 0 0 0 40px;
    border-radius: 7px;
    outline: none;
    border: 1px solid #9B8776;
    filter: drop-shadow(0px 1px 0px #efefef) drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5));
    transition: all 0.3s cubic-bezier(0.15, 0.83, 0.66, 1);
}

.input_field:focus {
    border: 1px solid transparent;
    box-shadow: 0px 0px 0px 2px #242424;
    background-color: transparent;
}

.sign-in_btn {
    width: 100%;
    height: 40px;
    border: 0;
    background: #9B8776;
    border-radius: 7px;
    outline: none;
    color: #ffffff;
    cursor: pointer;
}

.separator {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: #8B8E98;
}

.separator .line {
    display: block;
    width: 100%;
    height: 1px;
    border: 0;
    background-color: #e8e8e8;
}

/* Dashboards */
.dashboard {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    margin: 0 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #9b8776;
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Tabs */
.days-tabs {
    margin: 20px 0;
}

.tab-button {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: #4a6fa5;
    color: white;
}

.day-content {
    display: none;
    padding: 20px 0;
}

/* Alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Token cards */
.tokens-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.token-card {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.token-option {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #7f6d5e;
    display: flex;
    align-items: center;
    margin-left: 2vh;
    width: 82%;
}

.token-option:hover {
    border-color: #9B8776;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(77, 171, 247, 0.2);
}

.token-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.token-option input[type="radio"]:checked {
    border-color: #669c52;
    background-color: #7bc062;
}

.token-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.token-option label {
    flex: 1;
    cursor: pointer;
    color: #0B0B0B;
    font-size: 15px;
    line-height: 1.4;
    font-family: 'Inter';
}

.token-option input[type="radio"]:checked + label {
    color: #7bc062;
    font-weight: 500;
}

/* Estilo para la fecha de expiración */
.token-option label::after {
    content: attr(data-expira);
    display: block;
    font-size: 13px;
    color: #868e96;
    margin-top: 3px;
}

/* Cambia el color si está cerca de expirar (puedes añadir una clase dinámicamente con PHP) */
.token-option.expira-pronto label::after {
    color: #f03e3e;
    font-weight: 500;
}

/* Estilo para los tokens restantes */
.token-option label span.tokens-restantes {
    font-weight: 600;
    color: #2b8a3e;
}


/* Estilos para register.php */
.register-container {
    display: flex;
    
}

.logo_container {
    box-sizing: border-box;
    width: 200px;
    height: 80px;
    background: url('../../resource/image/LOGOTIPO MADÉE-06.webp') no-repeat center center/cover;
    border-radius: 11px;
}


.register-form {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 50px 40px 20px 40px;
    background-color: #ffffff;
    border-radius: 11px;
    font-family: "Inter";
}

.register-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 110vh;
}

.register-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(65%);
}


.image-overlay {
    position: absolute;
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 80%;
}

.image-overlay h3 {
    font-size: 2rem;
    margin-bottom: 50px;
    font-family: 'Inter';
}

.image-overlay p {
    font-family: 'PlayfairDisplay';
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 40vh;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px; /* Para que no se encoja demasiado */
}


.btn-block {
    width: 100%;
    padding: 12px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

/* Estilos para index.php */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../resource/image/dashbordClient.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 65px 20px;
    text-align: center;
    filter: brightness(95%);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Inter';
}

.hero-content p {
    font-size: 1.2rem;
    font-family: 'PlayfairDisplay';
}


.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.features-section {
    padding: 35px 20px;
    text-align: center;
}

.features-section h2 {
    margin-bottom: 50px;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 30px 3px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #f0f8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.testimonials-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.testimonial-card {
    min-width: 300px;
    max-width: 100%;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}



.testimonial-author {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.testimonial-author span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.cta-section {
    padding: 80px 20px;
    background-color: #4a6fa5;
    color: white;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .register-container {
        flex-direction: column;
    }

    .register-image {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
        font-family: 'Inter';
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }

    .features-container,
    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }

    .feature-card,
    .testimonial-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .register-form {
        padding: 20px;
    }
}

/*nuevo COMPONENETE*/

/* Estilos para manage_coaches.php y manage_schedule.php */
.admin-coaches,
.admin-schedule {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.add-coach-form,
.add-schedule-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.coaches-table,
.schedules-table {
    width: 100%;
    margin-top: 20px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-warning {
    background-color: #c52a2a;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #c52a2a;
    color: white;
}

/* Estilos para cancel_reservation.php */
.cancel-reservation {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.details-card {
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Estilos para packages.php */
.user-packages {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.package-card {
    border: 2px solid #9B8776;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.package-details {
    flex-grow: 1;
    margin-bottom: 15px;
}

.tokens-table {
    width: 100%;
    margin-top: 20px;
}

.tokens-table tr.expired {
    color: #6c757d;
    background-color: #f8f9fa;
}

/* Responsividad */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .coaches-table,
    .schedules-table,
    .tokens-table {
        display: block;
        overflow-x: auto;
    }
}

/*2do MODULO NUEVO*/

/* Estilos para el dashboard mejorado */
.dashboard-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.token-card {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.token-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.token-card.expired {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-link {
    color: #533f03;
    font-weight: bold;
}

/* Responsividad para botones */
@media (max-width: 576px) {
    .dashboard-actions {
        flex-direction: column;
    }

    .dashboard-actions .btn {
        width: 100%;
    }
}

/* Estilos del logout */ 

.containerLOG {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


@media (max-width: 768px) {
    .container {
        flex-direction: column; 
        gap: 1rem; 
    }

    nav {
        width: 100%; 
        justify-content: space-between; 
        margin-top: 20px;

    }
}

.button {
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--clr);
    color: #fff;
    border-radius: 10rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    padding-left: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s;
  }
  
  .button__icon-wrapper {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    position: relative;
    color: var(--clr);
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  
  .button:hover {
    background-color: #c15252;
  }
  
  .button:hover .button__icon-wrapper {
    color: #c15252;
  }
  
  .button__icon-svg--copy {
    position: absolute;
    transform: translate(-150%, 150%);
  }
  
  .button:hover .button__icon-svg:first-child {
    transition: transform 0.3s ease-in-out;
    transform: translate(150%, -150%);
  }
  
  .button:hover .button__icon-svg--copy {
    transition: transform 0.3s ease-in-out 0.1s;
    transform: translate(0);
  }

  