/* ==============================
   VARIABLES INSTITUCIONALES
================================= */
:root {
    --udea-verde: #006837;
    --udea-verde-hover: #00552d;
    --udea-verde-soft: #e8f3ef;
    --bg-main: #f4f6f9;
    --text-main: #2d2d2d;
    --text-muted: #6c757d;
    --border-soft: #dee2e6;
    --shadow-soft: 0 6px 18px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 28px rgba(0,0,0,0.12);
    --radius-main: 14px;
}

/* ==============================
   BASE
================================= */
body {
    background: linear-gradient(135deg, #f4f6f9, #eef1f4);
    font-family: "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
}

/* ==============================
   CONTENEDOR PRINCIPAL
================================= */
.container {
    animation: fadeIn 0.35s ease-in-out;
}

/* ==============================
   TARJETAS
================================= */
.card {
    border: none;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
    background: white;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ==============================
   HEADER TARJETAS
================================= */
.card-header {
    background: linear-gradient(135deg, var(--udea-verde), #008f4f);
    color: white;
    border-radius: var(--radius-main) var(--radius-main) 0 0 !important;
    font-weight: 500;
    letter-spacing: 0.4px;
}

/* ==============================
   BOTONES
================================= */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.btn-udea {
    background-color: var(--udea-verde);
    color: white;
    border: none;
}

.btn-udea:hover {
    background-color: var(--udea-verde-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,104,55,0.35);
}

.btn-success {
    box-shadow: 0 4px 10px rgba(25,135,84,0.25);
}

.btn-secondary {
    opacity: 0.9;
}

/* ==============================
   INPUTS / SELECTS
================================= */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    padding: 11px 12px;
    transition: all 0.2s ease;
    background-color: #fbfbfb;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--udea-verde);
    box-shadow: 0 0 0 0.15rem rgba(0,104,55,0.15);
    background-color: white;
}

/* ==============================
   LABELS
================================= */
label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #3c3c3c;
}

/* ==============================
   FORM SECTIONS
================================= */
.form-section {
    background: #fcfcfc;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

/* ==============================
   IMAGEN EVENTO
================================= */
.evento-img {
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transition: transform 0.3s ease;
}

.evento-img:hover {
    transform: scale(1.02);
}

/* ==============================
   TABLAS
================================= */
.table {
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.table thead {
    background: var(--udea-verde);
    color: white;
}

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background-color: var(--udea-verde-soft);
}

/* ==============================
   ALERTAS BONITAS
================================= */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow-soft);
}

/* ==============================
   TITULOS
================================= */
h4, h5 {
    font-weight: 600;
}

/* ==============================
   ANIMACIONES
================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================
   NAVBAR (OPCIONAL)
================================= */
.navbar-udea {
    background-color: white;
    box-shadow: var(--shadow-soft);
}

.navbar-udea .navbar-brand {
    color: var(--udea-verde);
    font-weight: 600;
}

/* ==============================
   FOOTER
================================= */
.footer {
    text-align: center;
    color: var(--text-muted);
    margin-top: 30px;
    font-size: 14px;
}

/* ==============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
    .card {
        margin: 8px;
    }

    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}
