/* ── ICC Seminarios Modern ─────────────────────────────────────────────── */

:root {
    --icc-orange: #F78D1D;
    --icc-orange-dark: #d4740e;
    --icc-blue: #2c3e6b;
    --icc-blue-light: #3d5a9e;
    --icc-bg: #f4f6f9;
    --icc-card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --icc-radius: 10px;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--icc-bg);
    color: #333;
    line-height: 1.6;
}

a { color: var(--icc-blue-light); transition: color .2s; }
a:hover { color: var(--icc-orange); }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header img {
    display: block;
}

/* ── Navigation ────────────────────────────────────────────────────────── */
.site-nav {
    background: white;
    border-bottom: 3px solid var(--icc-orange);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.site-nav .navbar {
    padding: 0;
    min-height: auto;
}

.site-nav .nav-link {
    color: var(--icc-blue) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1rem !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: all .2s;
}

.site-nav .nav-link:hover {
    color: var(--icc-orange) !important;
    background: rgba(247, 141, 29, 0.05);
    border-bottom-color: var(--icc-orange);
}

.site-nav .navbar-toggler {
    border-color: var(--icc-blue);
    margin: 0.5rem 0;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    border: none;
    border-radius: var(--icc-radius);
    box-shadow: var(--icc-card-shadow);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--icc-blue) 0%, var(--icc-blue-light) 100%);
    color: white;
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.card-header h4, .card-header h5 {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
}

.card-body { padding: 1.5rem; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--icc-orange) 0%, var(--icc-orange-dark) 100%);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all .2s;
    box-shadow: 0 2px 4px rgba(247, 141, 29, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--icc-orange-dark) 0%, #c06a0a 100%);
    box-shadow: 0 4px 8px rgba(247, 141, 29, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--icc-orange);
    border-color: var(--icc-orange);
}

.btn-outline-primary:hover {
    background-color: var(--icc-orange);
    border-color: var(--icc-orange);
    color: white;
}

/* ── Tables ────────────────────────────────────────────────────────────── */
.table {
    border-radius: var(--icc-radius);
    overflow: hidden;
    box-shadow: var(--icc-card-shadow);
    background: white;
}

.table thead th {
    background: var(--icc-blue);
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.7rem 1rem;
    border-color: #eee;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(44, 62, 107, 0.03);
}

.table-hover > tbody > tr:hover > td {
    background-color: rgba(247, 141, 29, 0.06);
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-control {
    border-radius: 6px;
    border: 1.5px solid #ddd;
    padding: 0.6rem 0.9rem;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
    border-color: var(--icc-orange);
    box-shadow: 0 0 0 3px rgba(247, 141, 29, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.form-select {
    border-radius: 6px;
    border: 1.5px solid #ddd;
}

.form-select:focus {
    border-color: var(--icc-orange);
    box-shadow: 0 0 0 3px rgba(247, 141, 29, 0.15);
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-danger {
    background: #fce4ec;
    color: #c62828;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--icc-blue);
    color: rgba(255,255,255,0.7);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.site-footer a {
    color: var(--icc-orange);
}

.site-footer .footer-logo {
    max-height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* ── Welcome hero section ──────────────────────────────────────────────── */
.hero-welcome {
    background: linear-gradient(135deg, var(--icc-blue) 0%, var(--icc-blue-light) 100%);
    color: white;
    border-radius: var(--icc-radius);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--icc-card-shadow);
}

.hero-welcome h3 {
    font-weight: 300;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.hero-welcome p {
    opacity: 0.85;
    margin-bottom: 0;
}

.hero-welcome a {
    color: var(--icc-orange);
    font-weight: 500;
}

/* ── Sidebar image card ────────────────────────────────────────────────── */
.sidebar-image-card {
    border-radius: var(--icc-radius);
    overflow: hidden;
    box-shadow: var(--icc-card-shadow);
}

.sidebar-image-card img {
    width: 100%;
    display: block;
}

.sidebar-image-card .caption {
    background: white;
    padding: 0.6rem;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
}

/* ── Steps list ────────────────────────────────────────────────────────── */
.steps-card ol {
    counter-reset: steps;
    list-style: none;
    padding-left: 0;
}

.steps-card ol li {
    counter-increment: steps;
    padding: 0.6rem 0 0.6rem 3rem;
    position: relative;
    border-bottom: 1px solid #eee;
}

.steps-card ol li:last-child { border-bottom: none; }

.steps-card ol li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: var(--icc-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ── Admin sidebar ─────────────────────────────────────────────────────── */
.admin-sidebar {
    background: linear-gradient(180deg, var(--icc-blue) 0%, #1a2744 100%);
    min-height: 100vh;
}

.admin-sidebar .sidebar-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 1rem 1.25rem 0.5rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.6) !important;
    padding: 0.5rem 1.25rem;
    font-size: 0.88rem;
    border-left: 3px solid transparent;
    transition: all .2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active-link {
    color: white !important;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--icc-orange);
}

.admin-sidebar .nav-link.dashboard-link {
    color: white !important;
    font-weight: 500;
}

/* ── Section titles ────────────────────────────────────────────────────── */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--icc-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--icc-orange);
    display: inline-block;
}

/* ── Page transitions ──────────────────────────────────────────────────── */
main { animation: fadeIn 0.3s ease-in; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-header .header-inner { flex-direction: column; gap: 0.5rem; }
    .site-header .header-title { font-size: 1.1rem; }
    .hero-welcome { padding: 1.5rem; }
    .hero-welcome h3 { font-size: 1.3rem; }
}

/* ── Print styles ─────────────────────────────────────────────────────── */
@media print {
    body { background: white !important; font-size: 11pt; }
    .site-header, .site-nav, .site-footer, .admin-sidebar,
    .btn, button, .navbar, .alert-dismissible .btn-close,
    .spinner-border { display: none !important; }
    main { margin: 0 !important; padding: 0 !important; }
    main.col-md-9 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
    .card-header { background: #f0f0f0 !important; color: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .table { box-shadow: none !important; }
    .table thead th { background: #e0e0e0 !important; color: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .badge { border: 1px solid #999 !important; }
    a { text-decoration: none !important; color: #333 !important; }
    .section-title { border-bottom-color: #333 !important; }
}
