/* =====================================================
   PLANTILLA LOCAL BUSINESS BOOKING
   Para cambiar colores: edita las variables CSS de abajo
   ===================================================== */

:root {
    --primary: #111111;
    --primary-light: #1c1c1c;
    --accent: #c8a96e;
    --accent-hover: #b08d52;
    --text: #333;
    --text-light: #666;
    --bg: #f8f9fa;
    --white: #ffffff;
    --border: #dee2e6;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius: 10px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    background: var(--primary);
    padding: 1rem 2rem;
    padding-top: max(1rem, calc(0.75rem + env(safe-area-inset-top, 0px)));
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#servicios, #contacto {
    scroll-margin-top: 4.5rem;
}

.navbar-brand {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.navbar-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-nav a:hover { color: var(--white); text-decoration: none; }

.btn-nav {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--accent-hover) !important; }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.1); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--white); text-decoration: none; transform: translateY(-1px); }

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); text-decoration: none; }

.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #218838; color: var(--white); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c82333; color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.875rem; border-radius: 20px; }

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-whatsapp:hover { background: #1da851; color: var(--white); text-decoration: none; }

/* =====================================================
   SECCIONES
   ===================================================== */
section { padding: 4rem 2rem; }

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* =====================================================
   CARDS DE SERVICIOS
   ===================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    border-top: 4px solid var(--accent);
}

.service-card:hover { transform: translateY(-4px); }

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

.service-duration {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* =====================================================
   INFO SECTION (Horario + Contacto)
   ===================================================== */
.info-section { background: var(--primary); color: var(--white); }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-block h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

.info-block p, .info-block li {
    opacity: 0.85;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.info-block ul { list-style: none; }

/* =====================================================
   FORMULARIO DE RESERVA
   ===================================================== */
.booking-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.booking-container h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group label .required { color: var(--accent); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s;
    background: var(--white);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-control.error { border-color: var(--danger); }

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.slot-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s;
    color: var(--text);
}

.slot-btn:hover, .slot-btn.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
}

.slots-loading { color: var(--text-light); font-style: italic; }
.slots-empty { color: var(--danger); font-size: 0.9rem; }

/* =====================================================
   PÁGINA DE CONFIRMACIÓN / CANCELACIÓN
   ===================================================== */
.result-container {
    max-width: 600px;
    margin: 3rem auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.result-icon { font-size: 4rem; margin-bottom: 1rem; }

.result-container h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.booking-detail-box {
    background: var(--bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.booking-detail-box .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.booking-detail-box .detail-row:last-child { border-bottom: none; }
.booking-detail-box .detail-label { font-weight: 600; color: var(--text-light); }
.booking-detail-box .detail-value { font-weight: 600; color: var(--text); }

/* =====================================================
   ALERTAS
   ===================================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* =====================================================
   PANEL ADMIN
   ===================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--primary);
    color: var(--white);
    padding: 0;
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
    color: var(--white);
    text-decoration: none;
}

.sidebar-nav { padding: 1rem 0; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: var(--accent);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: var(--bg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.admin-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Tabla admin */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header h2 { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

table { width: 100%; border-collapse: collapse; }

th {
    background: var(--bg);
    padding: 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: middle;
}

tr:hover td { background: #f9f9f9; }

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-confirmed { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }

/* Filtros admin */
.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form input, .filter-form select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Login admin */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 2rem;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.login-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* =====================================================
   CHATBOT WIDGET
   ===================================================== */
.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chatbot-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-btn:hover { transform: scale(1.1); }

.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 340px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: 500px;
}

.chatbot-window.open { display: flex; }

.chatbot-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    line-height: 1;
}

.chatbot-close:hover { opacity: 1; }

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 340px;
}

.msg {
    max-width: 85%;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-line;
}

.msg.bot {
    background: var(--bg);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--text);
}

.msg.user {
    background: var(--accent);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    display: flex;
    border-top: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    outline: none;
    font-family: var(--font);
}

.chatbot-input input:focus { border-color: var(--accent); }

.chatbot-send {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.chatbot-send:hover { background: var(--accent-hover); }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    text-align: center;
    padding: 2rem;
    padding-bottom: max(2rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
    font-size: 0.9rem;
}

footer a { color: rgba(255,255,255,0.9); }

/* =====================================================
   LOGIN CLIENTE — sticky footer PWA
   ===================================================== */
body.client-login-page {
    display: flex;
    flex-direction: column;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    background: #111111;
}

body.client-login-page .client-login-main {
    flex: 1;
    background: var(--bg);
    width: 100%;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .navbar { padding: 0.75rem 1rem; padding-top: max(0.75rem, calc(0.5rem + env(safe-area-inset-top, 0px))); }
    .navbar-nav { gap: 0.6rem; }
    .navbar-nav a { font-size: 0.85rem; }

    .hero { padding: 3rem 1rem; }

    section { padding: 2.5rem 1rem; }

    .info-grid { grid-template-columns: 1fr; gap: 2rem; }

    .booking-container { padding: 1.5rem; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .sidebar-nav { display: flex; flex-wrap: wrap; padding: 0; }
    .sidebar-nav a { flex: 1; min-width: 120px; padding: 0.75rem 1rem; font-size: 0.85rem; border-left: none; border-bottom: 3px solid transparent; }
    .sidebar-nav a.active { border-bottom-color: var(--accent); border-left: none; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .table-container { overflow-x: auto; }
    .admin-content { min-width: 0; }

    table { font-size: 0.8rem; }
    th, td { padding: 0.6rem 0.5rem; }

    .chatbot-window { width: 300px; right: -10px; }

    .result-container { padding: 2rem 1.5rem; margin: 1.5rem 1rem; }

    .share-container { margin: 1.5rem auto; }
    .share-card { padding: 1.5rem 1rem; }
    .share-url-box { flex-direction: column; }
    .share-url-box input { width: 100%; }
}

@media (max-width: 480px) {
    /* Navbar hamburguesa */
    .navbar {
        flex-wrap: wrap;
        gap: 0;
        padding-top: max(0.75rem, calc(0.5rem + env(safe-area-inset-top, 0px)));
        padding-bottom: 0.65rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    .navbar-brand { font-size: 1.05rem; flex: 1; min-width: 0; }
    .nav-hamburger { display: flex; align-items: center; }
    .navbar-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    .navbar-nav.open { display: flex; }
    .navbar-nav li { display: block !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .navbar-nav li:last-child { border-bottom: none; }
    .navbar-nav a { padding: 0.9rem 1.25rem; font-size: 0.95rem; display: block; width: 100%; }
    .btn-nav {
        margin: 0 !important;
        display: block !important;
        text-align: left !important;
        padding: 0.9rem 1.25rem !important;
        border-radius: 0 !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
    }

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

    .booking-container { padding: 1rem; }
    .booking-steps { gap: 0.25rem; }
    .step-indicator { font-size: 0.75rem; }

    .result-container { padding: 1.5rem 1rem; margin: 1rem 0.5rem; }

    .modal-card { padding: 1.25rem; margin: 0.5rem; }
    .time-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}

/* =====================================================
   SERVICIO — COLOR BADGE
   ===================================================== */
.service-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(0,0,0,0.06);
    color: var(--text);
}

/* =====================================================
   CALENDARIO DE RESERVAS
   ===================================================== */
.booking-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.step-indicator .step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.step-indicator.active .step-num {
    background: var(--accent);
    color: var(--white);
}

.step-indicator.done .step-num {
    background: var(--success);
    color: var(--white);
}

.step-separator { color: var(--border); font-size: 1rem; }

/* Service picker grid */
.service-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-pick-card {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--white);
    text-align: left;
}

.service-pick-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.service-pick-card.selected {
    border-color: var(--accent);
    background: rgba(200, 169, 110, 0.08);
}

.service-pick-card .spk-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.service-pick-card .spk-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.service-pick-card .spk-info {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.service-pick-card .spk-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: 0.3rem;
}

/* Month calendar */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: capitalize;
}

.cal-nav {
    background: none;
    border: 2px solid var(--border);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 0.3rem 0;
    text-transform: uppercase;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    background: none;
    color: var(--text);
    line-height: 1;
}

.cal-day.empty { cursor: default; }

.cal-day.available {
    background: var(--white);
    border-color: var(--border);
    color: var(--text);
}

.cal-day.available:hover {
    border-color: var(--accent);
    background: rgba(200,169,110,0.1);
}

.cal-day.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.cal-day.past, .cal-day.unavailable {
    color: var(--border);
    cursor: not-allowed;
}

.cal-day.today.available {
    border-color: var(--accent);
    font-weight: 800;
}

.cal-loading { text-align: center; color: var(--text-light); font-style: italic; padding: 1rem 0; }

/* Step sections */
.booking-step-section {
    display: none;
    animation: fadeIn 0.2s ease;
}

.booking-step-section.visible { display: block; }

@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.selected-summary {
    background: var(--bg);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.selected-summary strong { color: var(--text); }

.change-link {
    margin-left: auto;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--accent);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
}

/* =====================================================
   ADMIN — CALENDAR AVAILABILITY
   ===================================================== */
.avail-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 1rem;
}

.avail-day-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 0.4rem 0;
    text-transform: uppercase;
}

.avail-day {
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--border);
    background: var(--white);
    transition: all 0.15s;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
}

.avail-day .day-num {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.4;
}

.avail-day .day-tag {
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    padding: 1px 4px;
    line-height: 1.3;
}

.avail-day.empty { background: none; border-color: transparent; cursor: default; }
.avail-day.past { opacity: 0.4; cursor: not-allowed; }
.avail-day.closed-day { background: #ffeaea; border-color: #dc3545; }
.avail-day.closed-day .day-tag { background: #dc3545; color: white; }
.avail-day.custom-day { background: #fff8ec; border-color: var(--accent); }
.avail-day.custom-day .day-tag { background: var(--accent); color: white; }
.avail-day.default-day:hover, .avail-day.custom-day:hover, .avail-day.closed-day:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.modal-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--primary); }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-light);
}

.time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.time-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-light); margin-bottom: 0.25rem; display: block; }
.time-row input { width: 100%; padding: 0.5rem; border: 2px solid var(--border); border-radius: 6px; font-size: 0.9rem; }
.time-row input:focus { outline: none; border-color: var(--accent); }

/* =====================================================
   COMPARTIR PAGE
   ===================================================== */
.share-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.share-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    text-align: center;
}

.share-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }

.share-url-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-url-box input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
}

#qrcode { margin: 0 auto; display: inline-block; }
#qrcode canvas, #qrcode img { border-radius: 8px; }
