/* ===============================================
   Calls Section - Vibrant Premium Redesign
   =============================================== */

.calls-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* --- Call Card --- */
.call-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.call-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Status Bar (Top Gradient Line) */
.card-status-bar {
    height: 6px;
    background: linear-gradient(90deg, #6a1b9a 0%, #ab47bc 14%, #e91e63 28%, #0d47a1 42%, #2196f3 57%, #1b5e20 71%, #4caf50 85%, #6a1b9a 100%);
    background-size: 200% auto;
    animation: gradientAnimation 5s ease infinite;
    width: 100%;
}

.call-card:hover .card-status-bar {
    height: 8px;
}

/* --- Card Body --- */
.card-body {
    padding: 0;
}

.content-column {
    padding: 40px;
}

.sidebar-column {
    background-color: #fcfcfc;
    border-left: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .sidebar-column {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
    }
}

/* --- Header & Badges --- */
.badges-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.activa {
    background-color: #e8f5e9;
    color: #2e7d32;
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.1);
}

.status-badge.cerrada {
    background-color: #ffebee;
    color: #c62828;
}

.type-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #f0f2f5;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Title & Desc --- */
.call-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.call-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* --- Dates --- */
.call-dates {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    background: white;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.date-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.date-item i {
    font-size: 1.5rem;
}

.date-item.publicacion i {
    color: #3498db;
}

.date-item.cierre i {
    color: #e74c3c;
}

.date-item div {
    display: flex;
    flex-direction: column;
}

.date-item small {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
}

.date-item strong {
    font-size: 0.95rem;
    color: #333;
}

/* --- Requirements --- */
.requirements-section h5 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirements-section h5 i {
    color: #d60046;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.requirements-list li {
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.requirements-list li i {
    color: #2ecc71;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* --- Documents --- */
.documents-section {
    background-color: #fff9fa;
    padding: 25px;
    border-radius: 15px;
    border: 1px dashed rgba(214, 0, 70, 0.2);
}

.documents-section h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.doc-link:hover {
    background: #d60046;
    color: white;
    box-shadow: 0 5px 15px rgba(214, 0, 70, 0.25);
    transform: translateY(-2px);
    border-color: #d60046;
}

.doc-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d60046;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.doc-link:hover .doc-icon {
    background: white;
    color: #d60046;
}

/* --- Sidebar --- */
.sidebar-box {
    padding: 40px;
    height: 100%;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: #d60046;
    font-size: 1.3rem;
}

.contact-block small {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #888;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-block p {
    font-weight: 700;
    color: #333;
    font-size: 1.05rem;
    margin: 0;
}

.sidebar-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 25px 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
}

.contact-list li i {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d60046;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.contact-list li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list li a:hover {
    color: #d60046;
}

/* ==========================================================================
   HISTORICAL TABLE
   ========================================================================== */

.table-responsive {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: white;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #fff9fa;
}

.table tbody td {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: #555;
    font-size: 0.95rem;
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-hover tbody tr:hover td {
    color: #d60046;
}

.table-hover tbody tr:hover td .badge {
    opacity: 0.9;
}