/* ==========================================================================
   WAVE Artists - Professional Gray Theme (v3 Final)
   Concept: Modern / Clean / Professional / High Contrast
   Fonts: Inter (Universal)
   Palette: Dark Grays (No Pure Black), Light Text
   ========================================================================== */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* --- Palette: Professional Grays --- */
    --wave-bg-body: #121212;
    /* Standard Dark Mode Background */
    --wave-bg-surface: #1E1E1E;
    /* Cards / Regions */
    --wave-bg-header: #1E1E1E;
    /* Top Navigation */
    --wave-bg-sidebar: #181818;
    /* Side Navigation */

    /* --- Text Colors --- */
    --wave-text-main: #030324;
    --wave-text-hover-main: #f1df34;
    --wave-text-header: #ffffff;
    /* High legibility white/gray */
    --wave-text-secondary: #A1A1A6;

    /* --- Accents --- */
    --wave-yellow: #FFD60A;
    /* Apple-style readable yellow */
    --wave-red: #FF453A;
    /* Apple-style readable red */
    --wave-blue: #0A84FF;

    /* --- Borders & Separation --- */
    --wave-border: #38383A;
    /* Subtle separation */

    /* --- APEX Overrides --- */
    --ut-body-background-color: var(--wave-bg-body);
    --ut-body-text-color: var(--wave-text-main);
    --ut-header-background-color: var(--wave-bg-header);
    --ut-header-text-color: var(--wave-text-header);
    --ut-region-background-color: var(--wave-bg-surface);

    /* --- Fonts --- */
    --a-base-font-family: 'Inter', sans-serif;
    --a-heading-font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   Global & Typography
   ========================================================================== */
body.t-PageBody {
    background-color: var(--wave-bg-body);
    font-family: 'Inter', sans-serif;
}

.t-BreadcrumbRegion {
    background-color: var(--wave-bg-surface) !important;
}

.t-Body-contentInner {
    background-color: var(--wave-bg-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.t-Region-title {
    font-family: 'Inter', sans-serif;
    color: var(--wave-text-main);
    letter-spacing: -0.02em;
    /* Tighter, more modern tracking */
}

/* ==========================================================================
   Alerts & Notifications (High Contrast Fix)
   ========================================================================== */
/* Success Message */
.t-Alert--success {
    background-color: #E8F5E9 !important;
    /* Very light green */
    border-left: 4px solid #2E7D32 !important;
}

.t-Alert--success .t-Alert-title,
.t-Alert--success .t-Alert-body {
    color: #1B5E20 !important;
    /* Dark Green Text */
}

/* Warning/Error Message */
.t-Alert--warning,
.t-Alert--danger {
    background-color: #FFEBEE !important;
    /* Very light red */
    border-left: 4px solid #C62828 !important;
}

.t-Alert--warning .t-Alert-title,
.t-Alert--warning .t-Alert-body,
.t-Alert--danger .t-Alert-title,
.t-Alert--danger .t-Alert-body {
    color: #B71C1C !important;
    /* Dark Red Text */
}

/* Info Message */
.t-Alert--info {
    background-color: #E3F2FD !important;
    /* Very light blue */
    border-left: 4px solid #1565C0 !important;
}

.t-Alert--info .t-Alert-title,
.t-Alert--info .t-Alert-body {
    color: #0D47A1 !important;
    /* Dark Blue Text */
}

/* Close buttons on alerts */
.t-Alert-icon button {
    color: #000 !important;
}

/* ==========================================================================
   Regions & Cards
   ========================================================================== */
.t-Region,
.t-Card {
    background-color: var(--wave-bg-surface);
    border: 1px solid var(--wave-border);
    border-radius: 8px;
    /* Standard professional radius */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.t-Region-header {
    background-color: var(--wave-bg-surface);
    border-bottom: 1px solid var(--wave-border);
    color: var(--wave-text-main);
}

/* ==========================================================================
   Navigation (Sidebar)
   ========================================================================== */
.t-TreeNav {
    background-color: var(--wave-bg-sidebar);
    border-right: 1px solid var(--wave-border);
}

.t-TreeNav .a-TreeView-node--topLevel>.a-TreeView-content {
    color: var(--wave-text-secondary);
    font-weight: 500;
}

/* Hover State */
.a-TreeView-content:hover {
    color: var(--wave-text-hover-main) !important;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Active State */
.a-TreeView-node.is-selected>.a-TreeView-content {
    background-color: rgba(255, 214, 10, 0.15) !important;
    /* Subtle yellow tint */
    color: var(--wave-yellow) !important;
    border-left: 3px solid var(--wave-yellow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.t-Button--hot,
.t-Button--primary {
    background-color: var(--wave-yellow);
    color: #000000;
    /* Black text on yellow for max contrast */
    border: none;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: none;
    /* Flat design */
    transition: background-color 0.2s ease;
}

.t-Button--hot:hover,
.t-Button--primary:hover {
    background-color: #FFEA00;
    /* Slightly brighter on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Secondary Buttons */
.t-Button--simple,
.t-Button--secondary {
    background-color: transparent;
    border: 1px solid var(--wave-border);
    color: var(--wave-text-main);
}

/* ==========================================================================
   Forms & Inputs (Inverted for Contrast)
   ========================================================================== */
/* Labels - Make sure they pop against the dark background */
.t-Form-label {
    color: var(--wave-text-main) !important;
    font-weight: 500;
}

/* Inputs - White Background, Black Text (Classic High Contrast) */
.apex-item-text,
.apex-item-textarea,
.apex-item-select,
.apex-item-multi,
.apex-item-datepicker--popup-calendar {
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #000000 !important;
    border-radius: 4px;
    /* Standard crisp radius */
}

/* ComboSelect / Select List con autocompletar (filtros de P10, P20, P22...) */
.apex-item-comboselect,
.apex-item-comboselect .a-select,
.apex-item-comboselect input {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ccc !important;
}

/* Lista desplegable de opciones del comboselect */
.a-ComboSelect-list,
[class*="comboSelect"] [role="listbox"],
.apex-item-comboselect [role="option"],
.a-Select-list,
[role="listbox"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc !important;
}

[role="option"] {
    background-color: #ffffff !important;
    color: #000000 !important;
}

[role="option"]:hover,
[role="option"].is-focused,
[role="option"][aria-selected="true"] {
    background-color: rgba(10, 132, 255, 0.12) !important;
    color: #000000 !important;
}


/* Focus State */
.apex-item-text:focus,
.apex-item-textarea:focus,
.apex-item-select:focus {
    border-color: var(--wave-blue) !important;
    /* Standard focus blue */
    box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.3) !important;
    outline: none;
}

/* Modal/Popup Backgrounds - FORCE DARK */
.ui-dialog-content,
.ui-dialog,
.t-Dialog,
.t-Dialog-page,
.t-Dialog-body,
.t-Dialog-header,
.t-Dialog-footer {
    background-color: var(--wave-bg-surface) !important;
    color: var(--wave-text-main) !important;
}

/* Labels inside modals */
.t-Dialog .t-Form-label,
.ui-dialog .t-Form-label {
    color: var(--wave-text-main) !important;
}

/* Dialog overlay — darker for focus */
.ui-widget-overlay {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(3px);
}

/* Modal padding */
.t-Dialog-body {
    padding: 1.5rem 2rem !important;
}

/* Modal titlebar */
.ui-dialog-titlebar {
    background-color: var(--wave-bg-sidebar) !important;
    border-bottom: 2px solid var(--wave-yellow) !important;
    padding: 1rem 1.5rem !important;
}

.ui-dialog-title {
    color: var(--wave-text-header) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    letter-spacing: -0.02em;
}

/* Close button in modal titlebar */
.ui-dialog-titlebar-close {
    color: var(--wave-text-secondary) !important;
}

.ui-dialog-titlebar-close:hover {
    color: var(--wave-yellow) !important;
}

/* Regions inside modals — subtle sections */
.t-Dialog .t-Region {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--wave-border) !important;
    border-radius: 0 !important;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.t-Dialog .t-Region:last-child {
    border-bottom: none !important;
}

.t-Dialog .t-Region-header {
    background-color: transparent !important;
    border-bottom: none !important;
    padding-left: 0 !important;
}

.t-Dialog .t-Region-title {
    color: var(--wave-yellow) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* Icon labels (fa icons before label text) */
.t-Form-label .fa {
    margin-right: 0.4rem;
    color: var(--wave-text-secondary);
    font-size: 0.9rem;
    vertical-align: middle !important;
    line-height: normal !important;
}

/* Modal button bar */
.t-Dialog-footer {
    border-top: 1px solid var(--wave-border) !important;
    padding: 1rem 1.5rem !important;
}

/* Placeholder Color - Must be dark because inputs are white */
::placeholder {
    color: #555555 !important;
    opacity: 0.8;
}

/* Popup LOV Results - White background, dark text for readability */
.a-PopupLOV-results,
.a-PopupLOV-list,
.a-PopupLOV-item,
.a-PopupLOV-dialog,
.a-PopupLOV-searchBar {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.a-PopupLOV-item:hover,
.a-PopupLOV-item.is-focused {
    background-color: rgba(10, 132, 255, 0.1) !important;
    color: #000000 !important;
}

/* Search input inside Popup LOV */
.a-PopupLOV-search {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc !important;
}

/* ==========================================================================
   Data Grids / Reports
   ========================================================================== */
.a-IRR-header {
    background-color: var(--wave-bg-sidebar) !important;
    border-bottom: 1px solid var(--wave-border) !important;
    color: var(--wave-text-secondary) !important;
}

.a-IRR-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Zebra Striping */
.a-IRR-table tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Column header text */
.a-IRR-header a,
.a-IRR-headerLabel {
    color: var(--wave-text-secondary) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Cell text in reports — light on dark rows */
.a-IRR-table td {
    color: var(--wave-text-secondary);
    border-bottom: 1px solid var(--wave-border);
    padding: 0.65rem 0.75rem;
}

/* Links inside reports */
.a-IRR-table td a {
    color: var(--wave-blue);
}

.a-IRR-table td a:hover {
    color: var(--wave-yellow);
}

/* Search bar in IRR */
.a-IRR-search-field {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px;
}

/* ==========================================================================
   Required Fields (Yellow Star)
   ========================================================================== */
.t-Form-fieldContainer.is-required>.t-Form-labelContainer>label::after {
    content: ' ★';
    color: var(--wave-yellow);
    font-size: 0.65rem;
    vertical-align: super;
}

/* Inline validation error text */
.t-Form-error {
    color: var(--wave-red) !important;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.t-Breadcrumb-item {
    color: var(--wave-text-secondary);
}

.t-Breadcrumb-item a {
    color: var(--wave-text-secondary) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.t-Breadcrumb-item a:hover {
    color: var(--wave-yellow) !important;
}

.t-Breadcrumb-item.is-active span {
    color: var(--wave-text-header) !important;
    font-weight: 600;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.a-IRR-pagination {
    color: var(--wave-text-secondary);
}

.a-IRR-pagination a {
    color: var(--wave-yellow) !important;
    font-weight: 500;
}

/* ==========================================================================
   Badges / Tags (Utility - for genre labels, statuses, etc.)
   ========================================================================== */
.wave-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background-color: rgba(255, 214, 10, 0.12);
    color: var(--wave-yellow);
    border: 1px solid rgba(255, 214, 10, 0.25);
}

.wave-badge--red {
    background-color: rgba(255, 69, 58, 0.12);
    color: var(--wave-red);
    border-color: rgba(255, 69, 58, 0.25);
}

.wave-badge--blue {
    background-color: rgba(10, 132, 255, 0.12);
    color: var(--wave-blue);
    border-color: rgba(10, 132, 255, 0.25);
}

.wave-badge--muted {
    background-color: rgba(161, 161, 166, 0.1);
    color: var(--wave-text-secondary);
    border-color: rgba(161, 161, 166, 0.2);
}

/* ==========================================================================
   Custom Scrollbar (Webkit)
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wave-bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--wave-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==========================================================================
   Smooth Transitions (Global)
   ========================================================================== */
.t-Region,
.t-Card,
.t-Button,
.apex-item-text,
.apex-item-textarea,
.apex-item-select {
    transition: all 0.2s ease;
}

/* Page Title — Subtle gradient for WAVE branding */
.t-Body-title h1,
.t-Header-branding .t-Header-logo-link {
    color: var(--wave-text-header) !important;
}

/* ==========================================================================
   Header Bar Polish
   ========================================================================== */
.t-Header {
    background-color: var(--wave-bg-header);
    border-bottom: 1px solid var(--wave-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* User menu and icons in header */
.t-Header .t-Button {
    color: var(--wave-text-header) !important;
}

/* ==========================================================================
   Login Page Override (if applicable)
   ========================================================================== */
.t-Login-container {
    background-color: var(--wave-bg-body) !important;
}

.t-Login-region {
    background-color: var(--wave-bg-surface) !important;
    border: 1px solid var(--wave-border);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.t-Login-region .t-Login-title {
    color: #ffffff !important;
}

/* Form item wrapper text — white for dark backgrounds */
.t-Form-itemWrapper {
    color: #ffffff !important;
}

/* ==========================================================================
   Print Friendly (hide cosmetics when printing)
   ========================================================================== */
@media print {
    body.t-PageBody {
        background: #fff !important;
    }

    .t-Region,
    .t-Card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ==========================================================================
   Checkbox / Switch — Green when checked
   ========================================================================== */
.apex-item-single-checkbox input[type="checkbox"]:checked+.u-checkbox,
.apex-item-yes-no .apex-item-yes-no-conatiner input:checked+.a-Switch-toggle {
    background-color: #34C759 !important;
    border-color: #34C759 !important;
}

.apex-item-single-checkbox input[type="checkbox"]:checked+.u-checkbox::after {
    color: #ffffff !important;
}

/* Switch toggle (Yes/No) green track */
.a-Switch input:checked+.a-Switch-toggle {
    background-color: #34C759 !important;
    border-color: #2DA44E !important;
}

/* ==========================================================================
   Collapsible Region (Filtros con template "Collapsible" / t-Region--hideShow)
   ========================================================================== */

/* Header de la región colapsable — fondo diferenciado y texto legible */
.t-Region--hideShow>.t-Region-header {
    background-color: var(--wave-bg-sidebar) !important;
    border-bottom: 1px solid var(--wave-border) !important;
    border-radius: 8px 8px 0 0;
    padding: 0.6rem 1rem !important;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Título "Filtros" — blanco para que contraste sobre fondo oscuro */
.t-Region--hideShow .t-Region-title {
    color: var(--wave-text-header) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Chevron de colapsar — en amarillo para que destaque */
.t-Region--hideShow .a-Collapsible-toggle .a-Icon,
.t-Region--hideShow .a-Collapsible-toggle {
    color: var(--wave-yellow) !important;
}

/* Cuerpo de la región colapsable */
.t-Region--hideShow>.t-Region-bodyWrap {
    background-color: var(--wave-bg-surface) !important;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--wave-border) !important;
    border-top: none !important;
    padding: 1rem !important;
}

/* Labels dentro del body del colapsable — amarillo igual que antes */
.t-Region--hideShow .t-Region-bodyWrap .t-Form-label {
    color: var(--wave-yellow) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.4rem !important;
}

/* ==========================================================================
   Filter Bar Styling (legado — selector por ID para regiones no colapsables)
   ========================================================================== */
.t-Body-contentInner [id*="FILTROS"],
.t-Body-contentInner .filter-bar {
    background-color: var(--wave-bg-surface) !important;
    border: 1px solid var(--wave-border) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

/* Ensure items inside filters are centered/aligned */
.t-Body-contentInner [id*="FILTROS"] .t-Form-fieldContainer {
    margin-bottom: 0 !important;
    padding: 0 !important;
    flex: 1;
    min-width: 200px;
}

/* Align button with the input baseline (compensating for labels above inputs) */
.t-Body-contentInner [id*="FILTROS"] .t-Button {
    transform: translateY(28px) !important;
    align-self: flex-start;
}

.t-Body-contentInner [id*="FILTROS"] .t-Form-label {
    color: var(--wave-yellow) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.4rem !important;
}


/* ==========================================================================
   "Ha Tocado WAVE" Status Icon
   ========================================================================== */
.status-Y {
    color: #34C759 !important;
    /* Green check for artists who have played */
}

.status-N {
    color: var(--wave-text-secondary) !important;
    opacity: 0.3;
}

/* ==========================================================================
   Alerts & Dialogs Polish (Fixing Contrast)
   ========================================================================== */
/* Narrowed targets to avoid breaking LOVs and menus */
.t-Alert-title,
.t-Alert-content,
.t-Alert-body,
.t-Dialog-body,
.ui-dialog--notification .ui-dialog-content {
    color: #ffffff !important;
}

/* Specific fix for Popup LOV to ensure it's readable */
.a-PopupLOV-results,
.a-IconList {
    background-color: var(--wave-bg-darker) !important;
    border: 1px solid var(--wave-border) !important;
}

.a-IconList-item,
.a-PopupLOV-results * {
    color: var(--wave-text-primary) !important;
}

.a-IconList-item:hover,
.a-IconList-item.is-selected {
    background-color: var(--wave-yellow) !important;
    color: var(--wave-bg-dark) !important;
}

/* Specific fix for APEX Confirmation Dialogs (often using Wizard classes) */
.t-Alert--warning.t-Alert--wizard .t-Alert-content,
.t-Alert--danger.t-Alert--wizard .t-Alert-content {
    color: #ffffff !important;
}

.t-Alert--warning,
.t-Alert--danger {
    background-color: var(--wave-bg-darker) !important;
    border: 1px solid rgba(255, 69, 58, 0.4) !important;
}

/* Alert Icon Polish */
.t-Alert-icon .t-Icon {
    color: var(--wave-yellow) !important;
}

.t-Alert--danger .t-Alert-icon .t-Icon {
    color: #FF453A !important;
    background: transparent !important;
}

/* Confirmation Dialog Wrapper */
.ui-dialog {
    background-color: var(--wave-bg-darker) !important;
    border: 1px solid var(--wave-border) !important;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.8) !important;
}

.ui-dialog-titlebar {
    background-color: var(--wave-bg-dark) !important;
    border-bottom: 2px solid var(--wave-yellow) !important;
    color: var(--wave-yellow) !important;
}

/* Fix "Cancel" button text which sometimes stays dark */
.ui-dialog-buttonset .t-Button--noUI {
    color: var(--wave-text-primary) !important;
}

.ui-dialog-buttonset .t-Button--danger {
    background-color: #FF453A !important;
    border-color: #FF453A !important;
    color: #ffffff !important;
}

/* ==========================================================================
   P31 — Confirmation Page (Solicitud Enviada)
   ========================================================================== */
#wave-confirmacion.t-Region {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.wave-confirm-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 520px;
    margin: 4rem auto;
    background-color: var(--wave-bg-surface);
    border: 1px solid var(--wave-border);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.wave-confirm-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(52, 199, 89, 0.12);
    border: 2px solid #34C759;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: wave-confirm-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.wave-confirm-icon .fa {
    font-size: 2.4rem;
    color: #34C759;
}

@keyframes wave-confirm-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.wave-confirm-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wave-text-header) !important;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.wave-confirm-msg {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--wave-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.wave-confirm-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wave-yellow);
    opacity: 0.8;
    margin: 0 0 1.2rem 0;
}

.wave-confirm-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

.wave-confirm-hero-logo {
    height: 160px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    animation: wave-confirm-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

/* ==========================================================================
   P30 — Public Form: Intro Block & Footer
   ========================================================================== */

/* --- Intro Block --- */
.wave-p30-intro {
    max-width: 100%;
    margin: 0 0 2rem 0;
    padding: 0;
}

.wave-p30-logo-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.wave-p30-icon {
    font-size: 1.6rem;
    color: var(--wave-yellow);
}

.wave-p30-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Fila título + logo pequeño */
.wave-p30-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wave-p30-title-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Cuando el título está en la fila flex, quitar su margen propio */
.wave-p30-title-row .wave-p30-title {
    margin-bottom: 0;
}


.wave-p30-brand {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wave-yellow);
}

.wave-p30-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--wave-text-header) !important;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.wave-p30-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    color: var(--wave-text-secondary);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.wave-p30-desc strong {
    color: var(--wave-text-header);
    font-weight: 600;
}

.wave-p30-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--wave-yellow) 0%, transparent 100%);
    margin: 1.5rem 0;
    opacity: 0.4;
}

/* --- Footer --- */
.wave-p30-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--wave-border);
    padding-top: 1.5rem;
    text-align: center;
}

.wave-p30-footer-inner {
    max-width: 100%;
    margin: 0;
}

.wave-p30-footer-brand {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wave-yellow);
    margin-bottom: 0.6rem;
}

.wave-p30-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.wave-p30-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--wave-text-secondary) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wave-p30-footer-link:hover {
    color: var(--wave-yellow) !important;
}

.wave-p30-footer-link .fa {
    font-size: 0.9rem;
}

.wave-p30-footer-sep {
    color: var(--wave-border);
    font-size: 1rem;
}

.wave-p30-footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--wave-text-secondary);
    opacity: 0.5;
    margin: 0;
}

/* ==========================================================================
   Calendario de Eventos (P15) — FullCalendar / APEX Native Calendar
   ========================================================================== */

/* --- Contenedor principal: fondo blanco sobre el dark body --- */
.apex-fullcalendar,
.fc {
    background-color: #ffffff !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid var(--wave-border) !important;
}

/* --- Barra de herramientas (mes anterior/siguiente, hoy, título) --- */
.fc .fc-toolbar {
    background-color: #1E1E1E !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 2px solid var(--wave-yellow) !important;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fc .fc-toolbar-title {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

/* Botones de navegación (prev, next, today, month, list) */
.fc .fc-button,
.fc .fc-button-primary {
    background-color: transparent !important;
    border: 1px solid var(--wave-border) !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    padding: 0.3rem 0.7rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-transform: capitalize !important;
}

.fc .fc-button:hover,
.fc .fc-button-primary:hover {
    background-color: rgba(255, 214, 10, 0.15) !important;
    border-color: var(--wave-yellow) !important;
    color: var(--wave-yellow) !important;
}

.fc .fc-button-active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--wave-yellow) !important;
    border-color: var(--wave-yellow) !important;
    color: #000000 !important;
}

/* --- Cabecera de días de la semana (Sun, Mon, Tue…) --- */
.fc .fc-col-header-cell {
    background-color: #F5F5F7 !important;
    border-bottom: 1px solid #E0E0E0 !important;
}

.fc .fc-col-header-cell-cushion {
    color: #555555 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.5rem 0 !important;
    text-decoration: none !important;
}

/* --- Celdas de día --- */
.fc .fc-daygrid-day {
    background-color: #ffffff !important;
    border-color: #E8E8ED !important;
    transition: background-color 0.15s ease;
}

.fc .fc-daygrid-day:hover {
    background-color: #FAFAF5 !important;
    cursor: pointer;
}

/* Número del día */
.fc .fc-daygrid-day-number {
    color: #1C1C1E !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 0.4rem 0.6rem !important;
}

/* Días fuera del mes actual — más apagados */
.fc .fc-day-other .fc-daygrid-day-number {
    color: #C7C7CC !important;
}

/* --- Día de HOY resaltado con amarillo WAVE --- */
.fc .fc-day-today {
    background-color: rgba(255, 214, 10, 0.08) !important;
    border: 1px solid rgba(255, 214, 10, 0.4) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    background-color: var(--wave-yellow) !important;
    color: #000000 !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
}

/* --- Eventos en el calendario --- */
.fc-event,
.fc-daygrid-event {
    background-color: var(--wave-blue) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    margin: 1px 2px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: filter 0.15s ease, transform 0.1s ease !important;
}

.fc-event:hover,
.fc-daygrid-event:hover {
    filter: brightness(1.15) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4) !important;
}

.fc-event-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Vista "list" — fondo blanco también */
.fc-list,
.fc-list-table {
    background-color: #ffffff !important;
}

.fc-list-day-cushion {
    background-color: #F5F5F7 !important;
    color: #1C1C1E !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fc-list-event:hover td {
    background-color: rgba(10, 132, 255, 0.05) !important;
}

.fc-list-event-title a {
    color: #1C1C1E !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.fc-list-event-dot {
    border-color: var(--wave-blue) !important;
}

/* --- Región APEX que envuelve el calendario --- */
.apex-fullcalendar-region .t-Region-header {
    background-color: #1E1E1E !important;
}

.apex-fullcalendar-region .t-Region-title {
    color: #ffffff !important;
}

/* --- Colores de eventos del calendario --- */
.fc-event.wave-ev-blue,
.fc-daygrid-event.wave-ev-blue {
    background-color: #0A84FF !important;
    border-color: #0A84FF !important;
}

.fc-event.wave-ev-red,
.fc-daygrid-event.wave-ev-red {
    background-color: #FF453A !important;
    border-color: #FF453A !important;
}

.fc-event.wave-ev-green,
.fc-daygrid-event.wave-ev-green {
    background-color: #30D158 !important;
    border-color: #30D158 !important;
}

.fc-event.wave-ev-yellow,
.fc-daygrid-event.wave-ev-yellow {
    background-color: #FFD60A !important;
    border-color: #FFD60A !important;
    color: #000000 !important;
}

.fc-event.wave-ev-purple,
.fc-daygrid-event.wave-ev-purple {
    background-color: #BF5AF2 !important;
    border-color: #BF5AF2 !important;
}

.fc-event.wave-ev-orange,
.fc-daygrid-event.wave-ev-orange {
    background-color: #FF9F0A !important;
    border-color: #FF9F0A !important;
    color: #000000 !important;
}

/* ==========================================================================
   P16_COLOR — Select List con fondo de color por opción
   ========================================================================== */

/* Contenedor del select — mostrar el color seleccionado */
#P16_COLOR {
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Opciones dentro del <select> nativo */
#P16_COLOR option[value="wave-ev-blue"] {
    background-color: #0A84FF;
    color: #fff;
}

#P16_COLOR option[value="wave-ev-red"] {
    background-color: #FF453A;
    color: #fff;
}

#P16_COLOR option[value="wave-ev-green"] {
    background-color: #30D158;
    color: #fff;
}

#P16_COLOR option[value="wave-ev-yellow"] {
    background-color: #FFD60A;
    color: #000;
}

#P16_COLOR option[value="wave-ev-purple"] {
    background-color: #BF5AF2;
    color: #fff;
}

#P16_COLOR option[value="wave-ev-orange"] {
    background-color: #FF9F0A;
    color: #000;
}