:root {
    /* Paleta Minimalista Claro (mapeada a tus variables existentes) */
    --bg-dark: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-cream: #F4F4F5;
    --gold: #111111;
    --gold-hover: #27272A;
    --text-light: #111111;
    --text-muted: #6B7280;
    --text-dark: #111111;
    --border-gold: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-logo {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Navbar Minimalista */
.navbar {
    background: rgba(250, 250, 250, 0.85);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-dark);
    text-decoration: none;
}

.gold-dot {
    color: #10B981;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-dark);
}

/* Botones Píldora */
.btn-gold {
    background: #111111;
    color: #FFFFFF;
    border: 1px solid #111111;
    padding: 0.78rem 1.65rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.btn-gold:hover {
    background: #27272A;
    border-color: #27272A;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-outline {
    background: transparent;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 0.75rem 1.55rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #111111;
    color: #FFFFFF;
    border-color: #111111;
}

/* Hero Section Limpio */
.hero {
    padding: 7.5rem 0 6.5rem;
    background: radial-gradient(circle at top, #FFFFFF 0%, #FAFAFA 70%);
    text-align: center;
    border-bottom: 1px solid var(--border-gold);
}

.hero-tag {
    display: inline-block;
    color: var(--text-muted);
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.08;
    max-width: 780px;
    margin: 0 auto 1.4rem;
}

.hero p {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2.8rem;
    font-size: 1.08rem;
    font-weight: 400;
}

/* Barra Flotante de Sucursal */
.branch-finder {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    padding: 0.55rem;
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-soft);
}

.branch-finder select {
    flex: 1;
    background: transparent !important;
    color: var(--text-dark);
    border: none !important;
    outline: none;
    padding: 0.8rem 1.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

/* Secciones Generales */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header span {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* Experiencia Firma */
.vip-section {
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.vip-card {
    background: #FFFFFF;
    padding: 2.2rem;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.vip-step {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #F4F4F5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.vip-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.vip-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Catálogo de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: var(--shadow-hover);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-gold);
}

.service-header h3 {
    font-size: 1.18rem;
    font-weight: 600;
}

.service-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.service-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    display: block;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.6rem;
}

/* Override para sección Sucursales */
#sucursales {
    background: #F4F4F5 !important;
    border-top: 1px solid var(--border-gold) !important;
    border-bottom: 1px solid var(--border-gold) !important;
}

/* Ubicaciones y Mapa */
.location-toolbar {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 0.8rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.location-toolbar input {
    flex: 1;
    min-width: 220px;
    background: #FAFAFA;
    border: 1px solid var(--border-gold);
    border-radius: 9999px;
    color: var(--text-dark);
    padding: 0.78rem 1.2rem;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
}

.location-toolbar input:focus {
    border-color: #111111;
    background: #FFFFFF;
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.8rem;
    align-items: stretch;
}

.branches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.branch-card {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.branch-card.active-branch, .branch-card:hover {
    border-color: #111111;
    box-shadow: var(--shadow-hover);
}

.wait-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.32rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

.distance-badge {
    display: inline-block;
    background: #F4F4F5;
    color: #374151;
    padding: 0.32rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-left: 0.4rem;
}

.branch-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.branch-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.branch-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.map-container {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-header {
    padding: 1rem 1.4rem;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.map-frame {
    width: 100%;
    flex: 1;
    min-height: 360px;
    border: 0;
    filter: grayscale(20%) contrast(102%);
}

/* Sección B2B: Franquicias y Talento */
.b2b-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.b2b-card {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}

.b2b-card h3 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0.4rem 0 0.8rem;
}

.b2b-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Modal Check-In y Solicitudes */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    padding: 2.2rem;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #F4F4F5;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.close-modal:hover {
    background: #E4E4E7;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #FAFAFA;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    color: #111111;
    font-family: inherit;
    font-size: 0.94rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #111111;
    background: #FFFFFF;
}

/* Corrección de contraste en paneles internos (estilista.php, admin.php, gestionar.php, regalos.php) */
label[style*="background"],
div[style*="background:#121212" i],
div[style*="background: #121212" i],
div[style*="background:#141414" i],
div[style*="background: #141414" i],
div[style*="background:#181818" i],
div[style*="background: #181818" i],
div[style*="background:#111" i],
div[style*="background: #111" i],
div[style*="background:#1C1C1C" i],
div[style*="background: #1C1C1C" i] {
    background: #F4F4F5 !important;
    color: #111111 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
}

input[type="time"],
input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    background-color: #FAFAFA !important;
    color: #111111 !important;
    border: 1px solid rgba(0, 0, 0, 0.16) !important;
    border-radius: 8px !important;
    color-scheme: light;
}

input[type="time"]:focus,
input[type="date"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    background-color: #FFFFFF !important;
    border-color: #111111 !important;
    outline: none;
}

/* Footer */
footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-gold);
    padding: 3.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .location-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 5rem 0 4.5rem; }
    .hero h1 { font-size: 2.4rem; }
    .branch-finder {
        flex-direction: column;
        border-radius: 16px;
        padding: 0.75rem;
    }
    .branch-finder .btn-gold {
        width: 100%;
    }
}