/*
 | --------------------------------------------------------------------------
 | El Profesor - Premium Visual Overrides
 | --------------------------------------------------------------------------
 | Capa visual global para frontend y admin sin cambiar lógica ni textos.
 */

:root {
    --ep-radius-image: 13px;
    --ep-radius-card: 18px;
    --ep-radius-soft: 13px;
    --ep-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
    --ep-shadow-card: 0 14px 34px rgba(15, 23, 42, 0.09);
    --ep-shadow-hover: 0 18px 44px rgba(15, 23, 42, 0.12);
    --ep-border: #e7e9ee;
    --ep-bg: #ffffff;
    --ep-muted: #f8fafc;
    --ep-text: #0f172a;
    --ep-subtext: #475569;
}

.dark {
    --ep-border: #334155;
    --ep-bg: #0f172a;
    --ep-muted: #111827;
    --ep-text: #f8fafc;
    --ep-subtext: #cbd5e1;
    --ep-shadow-soft: 0 10px 28px rgba(2, 6, 23, 0.5);
    --ep-shadow-card: 0 16px 38px rgba(2, 6, 23, 0.6);
    --ep-shadow-hover: 0 20px 46px rgba(2, 6, 23, 0.7);
}

/* ---------- Base visual rhythm ---------- */
body {
    letter-spacing: 0.005em;
}

.section-shell,
.section-shell-tight {
    max-width: 1240px;
}

.surface-card,
.admin-panel,
.admin-surface,
.form-section,
.table-premium,
.modal-panel,
.comm-block,
.payment-trust-shell {
    border-radius: var(--ep-radius-card) !important;
    border-color: var(--ep-border) !important;
    box-shadow: var(--ep-shadow-soft) !important;
}

.surface-card:hover,
.admin-kpi-card:hover,
.comm-block-hover:hover,
.menu-item-row:hover,
.team-card-savora:hover {
    box-shadow: var(--ep-shadow-hover) !important;
}

/* ---------- Images / photos radius 13px ---------- */
img:not(.img-premium-circle):not([class*='rounded-full']) {
    border-radius: var(--ep-radius-image);
}

.img-shell,
.savora-media-card,
.comm-media,
.surface-card.overflow-hidden,
.team-card-savora,
.payment-method-logo {
    border-radius: var(--ep-radius-image) !important;
    overflow: hidden;
}

.img-premium {
    border-radius: var(--ep-radius-image) !important;
    object-fit: cover;
    object-position: center;
}

.img-premium-circle,
img.rounded-full {
    border-radius: 999px !important;
}

/* ---------- Hero premium layout polish ---------- */
section.relative.overflow-hidden.border-b {
    background-image:
        radial-gradient(1200px 420px at 85% -10%, rgba(251, 146, 60, 0.16), transparent 60%),
        radial-gradient(700px 260px at 10% 110%, rgba(249, 115, 22, 0.12), transparent 65%);
}

section.relative.overflow-hidden.border-b .section-kicker {
    letter-spacing: 0.18em;
}

section.relative.overflow-hidden.border-b .text-display-xl {
    letter-spacing: -0.03em;
    line-height: 1.02;
}

section.relative.overflow-hidden.border-b .text-body-lg {
    max-width: 62ch;
}

/* ---------- Header / footer premium ---------- */
.header-public,
.footer-public {
    border-color: var(--ep-border) !important;
    backdrop-filter: blur(14px);
}

.header-floating {
    border-radius: 14px !important;
    box-shadow: var(--ep-shadow-soft) !important;
}

.site-nav-link,
.menu-link,
.admin-nav-link {
    border-radius: 11px !important;
}

/* ---------- Buttons ---------- */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
.btn-whatsapp {
    border-radius: 12px !important;
    font-weight: 700 !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

/* ---------- Cards / listings ---------- */
.menu-item-row,
.card-compact,
.team-card-savora,
.comm-block,
.admin-kpi-card {
    border-radius: 16px !important;
}

.card-title,
.comm-title,
.team-card-name {
    letter-spacing: -0.015em;
}

.card-copy,
.comm-copy,
.team-card-bio,
.admin-page-subtitle {
    color: var(--ep-subtext) !important;
}

/* ---------- Forms ---------- */
.form-input,
.form-select,
.form-textarea,
.file-input-premium {
    border-radius: 12px !important;
    border-color: var(--ep-border) !important;
    background: var(--ep-bg) !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.file-input-premium:focus {
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.22) !important;
    border-color: #fb923c !important;
}

/* ---------- Tables ---------- */
.table-premium {
    overflow: hidden;
}

.table-premium thead {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

.dark .table-premium thead {
    background: linear-gradient(180deg, #1e293b 0%, #111827 100%) !important;
}

.table-premium tbody tr:hover {
    background: rgba(251, 146, 60, 0.08) !important;
}

/* ---------- Utility spacing harmony ---------- */
.section-stack {
    gap: 1.75rem !important;
}

@media (max-width: 1024px) {
    .section-shell,
    .section-shell-tight {
        max-width: 100%;
    }

    section.relative.overflow-hidden.border-b .text-display-xl {
        font-size: clamp(2.1rem, 7vw, 3rem);
    }
}

@media (max-width: 640px) {
    .surface-card,
    .card-compact,
    .team-card-savora,
    .menu-item-row,
    .comm-block {
        border-radius: 14px !important;
    }

    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-ghost,
    .btn-whatsapp {
        min-height: 42px;
    }
}




/* ---------- DAVID ---------- */
/* ---------- Encabezados ---------- */
