html {
    font-size: 14px;
}

:root {
    --naranja-udlap: #ee7404; /* Naranja Institucional UDLAP*/
    --verde-udlap: #154633; /* Verde Institucional UDLAP*/
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom styles for UDLAP */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.card {
    transition: all 0.3s ease-in-out;
    border: 1px solid #dee2e6;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.12) !important;
    }

.display-4 {
    font-weight: 700;
    color: #2c3e50;
}

.text-muted {
    color: #6c757d !important;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.2s ease-in-out;
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #004085;
        transform: translateY(-1px);
    }

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    transition: all 0.2s ease-in-out;
}

    .btn-success:hover {
        background-color: #218838;
        border-color: #1e7e34;
        transform: translateY(-1px);
    }

.alert {
    border-radius: 8px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
    border-top: 1px solid #dee2e6;
}

/* Language selector styles */
.dropdown-item.active {
    background-color: var(--naranja-udlap) !important;
    color: white;
}


.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active:hover {
    background-color: var(--verde-udlap);
}


.dropdown-item:not(.active):hover {
    background-color: var(--verde-udlap);
    color: white; 
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Animation for page transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Flexbox para centrado perfecto */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Dimensiones y espaciado */
    padding: 2px 20px;
    min-height: 48px;
    width: max-content;
}

    .whatsapp-float:hover {
        transform: scale(1.05);
        box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
        color: #FFF !important;
        text-decoration: none;
    }

    .whatsapp-float span {
        margin: 0;
        padding: 0;
        line-height: 1;
        font-family: 'Poppins', sans-serif;
    }

    .whatsapp-float img {
        display: block;
        flex-shrink: 0;
    }

    /***********************
        Estilos del Captcha
    ***********************/

    .captcha-question {
        background-color: #f8f9fa;
        padding: 30px;
        border-radius: 10px;
        border: 2px solid #dee2e6;
    }

    .display-6 {
        font-size: 3rem;
        font-weight: 300;
        line-height: 1.2;
    }

    #captchaAnswer {
        max-width: 200px;
        margin: 0 auto;
        font-size: 1.5rem;
        font-weight: 600;
    }

        #captchaAnswer:focus {
            border-color: #f47b20;
            box-shadow: 0 0 0 0.2rem rgba(244, 123, 32, 0.25);
        }

        #captchaAnswer.is-invalid {
            border-color: #dc3545;
        }

    #captchaError {
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }

        #captchaError.show {
            display: block !important;
        }

    .modal-content {
        border-radius: 15px;
    }

    .btn-dark-gray {
        background-color: #2d2d2d;
        color: white;
        border: none;
        padding: 10px 30px;
    }

        .btn-dark-gray:hover {
            background-color: #f47b20;
            color: white;
        }

        .btn-dark-gray:focus {
            box-shadow: 0 0 0 0.2rem rgba(244, 123, 32, 0.5);
        }

    .btn-loading {
        position: relative;
    }

    .spinner-border-sm {
        width: 1rem;
        height: 1rem;
        border-width: 0.15em;
    }


    /*************************************/
    /*************************************/

    .row-egresados-prof {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin: 0 -15px;
    }

    .col-left {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-right {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .cta-link {
        color: #ff6600;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-flex;
        align-items: center;
        transition: all 0.3s ease;
    }


    @media (max-width: 767px) {
        .col-left,
        .col-right {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }