﻿:root {
    --brand-primary: #2e3768;
    --brand-light: #ffffff;
    --card-flip-speed: 0.7s;
}

.logo-banner {
    height: auto;
    margin-top: 10px;
}

.banner {
    background-size: cover;
    background-position: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

    .banner h1, body h2 {
        font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
        font-weight: 700;
        text-transform: uppercase;
    }

    .banner h1 {
        color: var(--brand-light);
        font-size: 34px;
        line-height: 40px;
    }

body h2 {
    color: var(--brand-primary);
    font-size: x-large;
    margin-top: 50px;
    margin-bottom: 50px;
}

span {
    font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

p {
    font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

small-back {
    font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
    font-weight: 400;
}

a {
    text-decoration: none !important;
}

.small-semestre {
    font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

/* --- EFECTO FLIP --- */
.pasantia-card-flip {
    height: 180px;
    perspective: 1000px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .pasantia-card-flip:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(46, 55, 104, 0.15);
    }

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    /*transition: transform 0.7s cubic-bezier(0.5, 0, 0.25, 1);*/
    transition: transform var(--card-flip-speed) cubic-bezier(0.5, 0, 0.25, 1);
    transform-style: preserve-3d;
}

.pasantia-card-flip:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
}

/* --- CARA FRONTAL --- */
.card-front {
    background-color: #f8f9fa;
}

.card-image-wrapper {
    position: relative;
    height: 180px;
    overflow: visible;
}

    .card-image-wrapper .img-fluid {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* --- BLOQUES DE FECHA --- */
.date-circle, .date-square-inicio, .date-square-fin {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(248, 249, 250, 0.85);
    z-index: 2;
    backdrop-filter: blur(2px);
}

.date-circle {
    width: 130px;
    height: 25px;
    top: 10px;
    right: 10px;
}

.date-square-inicio, .date-square-fin {
    width: 60px;
    height: 110px;
    top: 45px;
}

.date-square-inicio {
    right: 80px;
}

.date-square-fin {
    right: 10px;
}

.date-label {
    font-size: 1em;
    line-height: 1;
}

.date-day {
    font-size: 1.6em;
    font-weight: 900;
    line-height: 1;
}

.date-month {
    font-size: 1.3em;
    line-height: 1;
}

.date-year {
    font-size: 1em;
    line-height: 1.2;
}

.date-time {
    font-size: 1em;
    line-height: 1.2;
}

/* --- CARA TRASERA --- */
.card-back {
    /*background: linear-gradient(135deg, #212529, #000000);*/
    /*background: linear-gradient(135deg, #111827, #1F2937);*/
    background: linear-gradient(135deg, #1A1A2E, #2A2A4E);
    color: white;
    transform: rotateY(180deg) translateZ(1px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-caption-back {
    text-align: center;
    padding: 20px;
}

.btn-custom {
    border: 2px solid #fff !important;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 1em !important;
    font-weight: 300;
    font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .btn-custom:hover {
        background-color: #fff;
        color: var(--brand-primary);
        border-radius: 0px;
    }

/* --- TEXTO DEBAJO DE LA IMAGEN --- */
.pasantia-card-caption {
    padding: 15px;
    background-color: transparent !important; /*
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);*/
    position: relative;
}

    .pasantia-card-caption h3 {
        color: var(--brand-primary);
        font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0 !important;
        height: 45px;
        overflow: hidden;
        line-height: 1.3;
    }

    .pasantia-card-caption a {
        color: inherit;
    }

/* --- ESTILOS DE BADGES (CARA TRASERA) --- */
.card-caption-back .status-box {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.status-box {
    padding: 10px;
    font-size: 0.9em;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    min-height: 120px;
    color: #fff;
}

    .status-box i {
        margin-bottom: 20px;
        margin-top: 20px;
        text-shadow: 0 0 10px rgba(0,0,0,0.5);
    }

    .status-box p {
        margin: 0;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 1.1em;
        line-height: 1.2;
    }

    .status-box small {
        font-weight: 300;
        opacity: 0.9;
    }

.status-activa i {
    color: #20c997;
    animation: check-glow 1.2s infinite ease-in-out;
}
/*Postulaciones abiertas*/
.status-futura i {
    color: #0dcaf0;
    animation: clock-bob 1.2s infinite ease-in-out;
}
/*próximamente*/
.status-pasada i {
    color: #adb5bd;
    opacity: 0.7;
}

.status-urgente i {
    color: #ffc107;
    animation: fire-flicker 1.2s infinite;
}
/* menos de 2 dias*/
.status-critica i {
    color: #ffc107;
    animation: pulse-edit 1.2s infinite;
}
/*Menos de 1 día*/
.status-alerta i {
    color: #fd7e14;
}

/* --- ANIMACIONES --- */
@keyframes check-glow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 5px #20c997;
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 15px #20c997;
    }
}

@keyframes clock-bob {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fire-flicker {
    0%, 100% {
        text-shadow: 0 0 5px #ffd129;
    }

    50% {
        text-shadow: 0 0 25px #fcde72;
    }
}

@keyframes pulse-edit {
    0%, 100% {
        text-shadow: 0 0 5px #dc3545;
    }

    50% {
        text-shadow: 0 0 10px #e84d5b;
    }
}
