@charset "UTF-8";

/* =========================================
   MR BARBER — CSS COMPLETO v2.1 (Optimizado)
   Ordenado, con animaciones y responsive
   ========================================= */

/* =========================================
   1. RESET Y VARIABLES GLOBALES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-base:        #0a0a0a;
    --bg-surface:     #111111;
    --bg-elevated:    #1a1a1a;
    --border:         #222222;
    --border-light:   #2e2e2e;
    
    /* Variables corregidas y añadidas */
    --red:            #d9d9d9;
    --red-hover:      #2e2e2e;
    --red-glow:       rgba(255, 255, 255, 0.10);
    --red-subtle:     rgba(255, 255, 255, 0.08);
    --black:          #050505;
    --white:          #ffffff;
    
    --text-primary:   #f0f0f0;
    --text-secondary: #999999;
    --text-muted:     #555555;

    --radius-sm:  6px;
    --radius-md:  8px;
    --radius-lg:  12px;
    
    /* Transición más elegante (cubic-bezier) */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* =========================================
   2. ANIMACIONES GLOBALES
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
    50%      { box-shadow: 0 0 0 8px transparent; }
}

.contact-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.contact-link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.22);
    color: var(--white);
    transition: transform var(--transition), background var(--transition);
}

.contact-link:hover {
    background: rgba(255,255,255,.16);
    transform: translateY(-2px);
    color: var(--white);
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   3. BASE — BODY Y TIPOGRAFÍA
   ========================================= */
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar-mrbarber {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInLeft 0.4s ease both;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-icon {
    background: var(--red-glow);
    color: var(--red);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background var(--transition);
}

.brand-wrap:hover .brand-icon {
    background: rgba(204, 0, 0, 0.25);
    animation: pulse-red 1.2s ease infinite;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.brand-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.05em;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
    flex: 1;
    justify-content: space-evenly;
}

.nav-item-saas,
.nav-link-saas {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
}

.nav-item-saas::after,
.nav-link-saas::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-item-saas:hover,
.nav-link-saas:hover {
    color: var(--white);
}

.nav-item-saas:hover::after,
.nav-link-saas:hover::after,
.nav-item-saas.active::after,
.nav-link-saas.active::after {
    width: 100%;
}

.nav-item-saas.active,
.nav-link-saas.active {
    color: var(--white);
}

/* =========================================
   5. LAYOUT — PAGE WRAPPER Y HEADER
   ========================================= */
.page-wrapper,
.main-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    animation: fadeIn 0.4s ease 0.1s both;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    margin-bottom: 0.3rem;
}

.toolbar-chip,
.badge-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================
   6. MAIN (index hero)
   ========================================= */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   7. HERO PREMIUM MR BARBER
   ========================================= */
.hero {
    position: relative;
    min-height: 85vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/static/img/fondo-barberia.jpg.PNG");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(2px);
    transform: scale(1.03);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.45) 0%,
        rgba(0,0,0,.35) 40%,
        rgba(0,0,0,.70) 80%,
        rgba(0,0,0,1) 100%
    );
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: rgba(204, 0, 0, 0.20);
    border: 1px solid rgba(204, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 40px rgba(204,0,0,.25),
        0 10px 40px rgba(0,0,0,.45);
}

.hero-eyebrow {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: .9;
    letter-spacing: .06em;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0,0,0,.4); /* Sombra suavizada */
    margin-bottom: 1rem;
}

.hero-subtitle {
    max-width: 700px;
    color: rgba(255,255,255,.88);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions .btn-primary-saas,
.hero-actions .btn-secondary-saas {
    font-size: 0.93rem;
    font-weight: 600;
    padding: 0.72rem 1.4rem;
    margin-top: 0;
}

/* Logo Animado MR Barber */
.hero-logo-mr {
    width: 300px;
    max-width: 75vw;
    margin-bottom: 0.1rem;
    animation:
        logoEntrance .8s ease,
        logoFloat 6s ease-in-out infinite .8s;
    filter: drop-shadow(0 0 15px rgba(255,255,255,.15));
}

@keyframes logoEntrance {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes logoFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Quick Grid Unificado */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem 3rem;
    position: relative;
    z-index: 5;
    margin-top: 30px;
    animation: fadeIn 0.5s ease 0.25s both;
}

/* =========================================
   8. BOTONES
   ========================================= */
.btn-main,
.btn-primary-saas {
    background-color: var(--black);
    margin-top: 20px;
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.72rem 1.4rem;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-main:hover,
.btn-primary-saas:hover {
    background-color: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.10);
}

.btn-main:active,
.btn-primary-saas:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-outline-saas {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.72rem 1.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-outline-saas:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-secondary-saas {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.72rem 1.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-secondary-saas:hover {
    background: var(--border-light);
    transform: translateY(-2px);
}

/* =========================================
   9. FORMULARIOS E INPUTS
   ========================================= */
.form-label,
.form-label-saas {
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-weight: 500;
    margin-bottom: 0.45rem;
    display: block;
}

.form-control,
.form-control-saas {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.72rem 1rem;
    width: 100%;
    font-size: 0.93rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-control:focus,
.form-control-saas:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px var(--red-glow);
}

.form-select-saas {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.72rem 1rem;
    width: 100%;
    font-size: 0.93rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select-saas:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px var(--red-glow);
}

.form-select-saas option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

/* =========================================
   10. CARDS GENÉRICAS (saas-card)
   ========================================= */
.saas-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: fadeIn 0.4s ease both;
}

.saas-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.saas-card-header h6 {
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.1rem;
    letter-spacing: 0;
}

.saas-card-header small {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: block;
}

.card-header-icon {
    background: var(--red-glow);
    color: var(--red);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.saas-card-body {
    padding: 1.5rem;
}

/* =========================================
   11. QUICK CARDS (index)
   ========================================= */
.quick-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
    animation: fadeIn 0.4s ease both;
}

.quick-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-hover);
}

.quick-icon {
    font-size: 1.8rem;
    color: var(--red);
    margin-bottom: 1rem;
    display: block;
    transition: transform var(--transition);
}

.quick-card:hover .quick-icon {
    transform: scale(1.15);
}

.quick-title {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.quick-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.quick-link {
    color: var(--red);
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition);
}

.quick-card:hover .quick-link {
    gap: 0.7rem;
}

/* =========================================
   12. SERVICIOS
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-icon-wrap {
    background: var(--red-glow);
    color: var(--red);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.service-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.service-name {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.service-price-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}

.service-price {
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 700;
}

.service-duration-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* =========================================
   13. ALERTAS Y ESTADOS
   ========================================= */
.alert-saas {
    background-color: var(--red-subtle);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f0f0f0;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease both;
}

.alert-saas.alert-success {
    background-color: rgba(0, 180, 80, 0.08);
    border-color: rgba(0, 180, 80, 0.2);
    color: #5edd8e;
}

.hint {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   14. EMPTY STATES
   ========================================= */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.4s ease both;
}

.empty-icon,
.empty-state-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.empty-title,
.empty-state-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-sub,
.empty-state-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* =========================================
   15. LINKS SECUNDARIOS
   ========================================= */
.small-link {
    color: var(--text-secondary);
    font-size: 0.83rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition);
}

.small-link:hover {
    color: var(--white);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 2rem;
    transition: color var(--transition), gap var(--transition);
}

.back-link:hover {
    color: var(--red);
    gap: 0.75rem;
}

/* =========================================
   16. AUTH CARD
   ========================================= */
.auth-card,
.login-card,
.reserva-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 400px;
    margin: 3rem auto;
    width: calc(100% - 2rem);
    box-shadow: var(--shadow-card);
    animation: scaleIn 0.4s ease both;
}

.auth-card h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.auth-card .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-decoration: none;
    color: inherit;
}

/* =========================================
   17. TABLAS
   ========================================= */
.table-section {
    margin-top: 1.5rem;
}

.table-container {
    overflow-x: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

table.table,
table.table-saas {
    margin-bottom: 0;
    color: var(--text-primary);
    border-collapse: collapse;
    width: 100%;
}

table.table th,
table.table-saas thead th {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.9rem 1rem;
    white-space: nowrap;
}

table.table td,
table.table-saas tbody td {
    border-bottom: 1px solid var(--border);
    background: transparent;
    padding: 0.9rem 1rem;
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 0.93rem;
    transition: background var(--transition);
}

table.table-saas tbody tr:hover td {
    background: var(--bg-elevated);
}

table.table-saas tbody tr:last-child td {
    border-bottom: none;
}

.row-num {
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 40px;
}

.client-name-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.client-avatar {
    background: var(--red-glow);
    color: var(--red);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.client-name {
    font-weight: 500;
    color: var(--text-primary);
}

.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-elevated);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

/* =========================================
   20. MODAL
   ========================================= */
.modal-content {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6) !important;
}

.modal-header {
    background: var(--bg-elevated) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 1.1rem 1.4rem !important;
}

.modal-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.05em !important;
    color: var(--white) !important;
}

.modal-body {
    padding: 1.4rem !important;
}

.modal-footer {
    background: var(--bg-elevated) !important;
    border-top: 1px solid var(--border) !important;
    padding: 1rem 1.4rem !important;
    gap: 0.5rem;
}

.btn-close {
    filter: invert(1) !important;
    opacity: 0.5 !important;
}

.btn-close:hover {
    opacity: 1 !important;
}

/* =========================================
   21. CONFIRMATION CARD
   ========================================= */
.confirmation-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: scaleIn 0.4s ease both;
}

.confirmation-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem 1.75rem 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.confirmation-icon {
    background: rgba(0, 180, 80, 0.12);
    color: #5edd8e;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    animation: scaleIn 0.5s ease 0.15s both;
}

.confirmation-body {
    padding: 1.75rem;
}

.reservation-code {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.1rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.05em;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.detail-value {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* =========================================
   22. FOOTER
   ========================================= */
.footer {
    text-align: center;
    padding: 1.5rem 2rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    margin-top: auto;
}

/* =========================================
   23. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-mrbarber {
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        min-height: unset;
    }

    .nav-links {
        width: 100%;
        gap: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
        justify-content: flex-start;
    }

    .nav-links::-webkit-scrollbar { display: none; }

    .nav-item-saas,
    .nav-link-saas {
        font-size: 0.82rem;
        padding: 0.35rem 0.65rem;
        white-space: nowrap;
        border-radius: var(--radius-sm);
    }

    .nav-item-saas:hover,
    .nav-item-saas.active {
        background: var(--bg-elevated);
    }

    .nav-item-saas::after,
    .nav-link-saas::after { display: none; }

    .page-wrapper,
    .main-container {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 3rem 1.25rem 2rem;
    }
    
    .hero-logo-mr {
        width: 260px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-actions .btn-primary-saas,
    .hero-actions .btn-secondary-saas {
        width: 100%;
        justify-content: center;
    }

    .quick-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 2rem;
    }

    .auth-card,
    .login-card,
    .reserva-card {
        margin: 1.5rem auto;
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .saas-card-body {
        padding: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .confirmation-header {
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn-primary-saas,
    .actions .btn-secondary-saas,
    .btn-primary-saas,
    .btn-main {
        width: 100%;
        justify-content: center;
    }

    /* FullCalendar overrides */
    .fc { padding: 0.75rem; }
    .fc-daygrid-event-harness { display: none !important; }
    .fc-daygrid-day-top { justify-content: center !important; padding-top: 5px; }
    .fc .fc-toolbar-title { font-size: 1.1rem !important; }
    .fc-header-toolbar { flex-direction: column !important; gap: 8px !important; }
    .fc-toolbar-chunk { display: flex; justify-content: center; }
}

@media (max-width: 400px) {
    .page-title {
        font-size: 1.5rem;
    }
    /* Eliminada la regla que rompía el clamp() de .hero-title */
}
.fc .fc-scrollgrid-section-sticky > * {
    background: transparent !important; 
    background-color: transparent !important;
}
/* Ajusta la altura de la cabecera donde dice "Barberos" */
.fc .fc-datagrid-header .fc-datagrid-cell-frame {
    display: flex !important;
    align-items: center !important; /* Centra el texto verticalmente */
    min-height: 45px !important; /* ⚠️ Ajusta este número hasta que la línea coincida exactamente */
}

/* Opcional: Si el texto "Barberos" necesita un poco más de espacio a los lados */
.fc .fc-datagrid-header .fc-datagrid-cell-cushion {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
