/* ============================================================
   CLUB NÁUTICO PUNTA HERMOSA — Blazor Web App
   Paleta: Azul marino #002D72 / #2B4B9B | Dorado #E8B84B
   ============================================================ */

:root {
    --navy: #002D72;
    --navy-mid: #2B4B9B;
    --gold: #E8B84B;
    --bg-light: #F8F9FA;
    --text-muted-custom: #888;
}

/* ── Tipografía base ── */
body {
    font-family: 'Segoe UI', Calibri, Arial, sans-serif;
    background: #ffffff;
    color: #222;
}

/* ── Colores utilitarios ── */
.bg-navy  { background-color: var(--navy) !important; }
.bg-navy-mid { background-color: var(--navy-mid) !important; }
.text-navy   { color: var(--navy-mid) !important; }
.border-navy { border-color: var(--navy-mid) !important; }

/* ── Botón principal (azul marino redondeado) ── */
.btn-cnph {
    background-color: var(--navy);
    color: #ffffff;
    border-radius: 15px;
    font-weight: 600;
    padding: 0.55rem 1rem;
    letter-spacing: 0.3px;
    border: none;
    transition: background .2s;
}
.btn-cnph:hover:not(:disabled) {
    background-color: var(--navy-mid);
    color: #ffffff;
}
.btn-cnph:disabled {
    background-color: #8899b8;
    color: #ddd;
    cursor: not-allowed;
}

/* ── Botones de selección (deporte / cancha / fecha / hora) ── */
.btn-navy {
    background-color: var(--navy-mid);
    color: #ffffff;
    border: 1px solid var(--navy-mid);
    border-radius: 8px;
}
.btn-outline-navy {
    background-color: transparent;
    color: var(--navy-mid);
    border: 1px solid var(--navy-mid);
    border-radius: 8px;
}
.btn-outline-navy:hover {
    background-color: var(--navy-mid);
    color: #ffffff;
}

/* ── Foto circular del socio en Home ── */
.foto-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #E8ECF4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.foto-iniciales {
    font-size: 60px;
    font-weight: bold;
    color: var(--navy-mid);
    position: absolute;
    z-index: 0;
}
.foto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
    border-radius: 50%;
}

/* ── Cards de deportes ── */
.sport-card {
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.sport-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(43,75,155,.15) !important;
}

/* ── Error de Blazor ── */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Spinner color ── */
.spinner-border.text-navy { color: var(--navy-mid) !important; }

/* ── Formularios ── */
.form-control:focus,
.form-select:focus {
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 .2rem rgba(43,75,155,.15);
}

/* ── Badges ── */
.badge.bg-navy {
    background-color: var(--navy-mid) !important;
}

/* ── Modal ── */
.modal-header.bg-navy {
    border-bottom: none;
}

/* ── Header de club ── */
.club-header {
    min-height: 58px;
}

/* ── Scrollbar suave ── */
html { scroll-behavior: smooth; }

/* ── Mobile first ── */
@media (max-width: 576px) {
    .foto-circle { width: 160px; height: 160px; }
    .foto-iniciales { font-size: 48px; }
}
