@font-face {
    font-family: Roboto-Regular;
    src: url("../fonts/roboto/Roboto-Regular.ttf") format('truetype');
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope/Manrope-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: XXIIAven-Regular;
    src: url("../fonts/ttf/XXIIAven-Regular.ttf") format('truetype');
}

@font-face {
    font-family: Apis-Light;
    src: url("../fonts/apis/Apis-Light.ttf") format('truetype');
}

@font-face {
    font-family: Apis-ExtraBold;
    src: url("../fonts/apis/Apis-ExtraBold.ttf") format('truetype');
}

@font-face {
    font-family: Apis-Bold;
    src: url("../fonts/apis/Apis-Bold.ttf") format('truetype');
}

.container-fluid {
    font-family: Roboto-Regular;
    position: relative;
}

.custom-tbody {
    display: flex;
}

.responsive td {
    width: 100%;
}

.responsive td[data-titulo]::before {
    content: attr(data-titulo);
    max-width: 103px;
    color: white;
    font-weight: 500;
    padding-right: 1rem;
}

.responsive tr {
    width: 50%;
    flex-wrap: wrap;
}

.form-container {
    display: flex;
}

.input-custom {
    width: 85%;
}

td a {
    font-size: 5x;
    padding: 0rem;
    height: 24px;
    width: 80px;
}

.btn-custom {
    margin-left: auto;
}


/* ---------------------------------------------------------------------------------------- */

.countdown .container {
    display: flex;
    justify-content: center;
}

.countdown p {
    margin: 0px;
    font-size: 25px;
}

.countdown .container>div {
    width: 200px;
    text-align: center;
    padding: 15px 0px;
}

.countdown .numero {
    font-size: 50px;
    line-height: 50px;
}


.footer {
    width: 100%;
    position: absolute;
    bottom: -49px;
    font-family: Roboto-Regular;
    /* background-color: #aaaaaa; */
    /* color: #000000; */
    color: #ffffff;
    background-color: #000000;
    padding-top: 15px;
    padding-bottom: 15px;

}

.footer a {
    color: #ffffff
}

/* Encuesta */

.encuesta {
    font-family: Apis-Light;
}

.encuesta .bold {
    font-family: Apis-ExtraBold;
}

.encuesta .tittle,
.encuesta .form-group>label {
    font-family: Apis-Bold;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

@media (max-width: 500px) {
    .countdown p {
        margin: 0px;
        font-size: 14px;
    }

    .countdown .numero {
        font-size: 30px;
        line-height: 30px;
    }
}

@media (max-width: 580px) {

    .custom-tbody {
        flex-direction: column;
    }

    .responsive tr {
        width: 100%;
    }
}

/* Unified styles for index.php and login.php */
body.auth-bg {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../img/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.main-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

.logo-container {
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.logo-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.form-card {
    background-color: #f2f5f9;
    border-radius: 20px;
    padding: 30px 35px;
    width: calc(100% - 40px);
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.form-title {
    color: #003366;
    font-size: 27px;
    font-weight: 800;
    /* ExtraBold */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.form-title::after {
    content: '';
    display: block;
    width: 250px;
    height: 3px;
    background-color: #003366;
    margin: 10px auto 0;
}

.form-title-login::after {
    width: 250px;
}

.custom-form-group {
    margin-bottom: 8px;
}

.custom-form-group input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #7a7a7a;
    padding: 10px 5px;
    font-size: 17px;
    font-weight: 300;
    /* Light */
    color: #333;
    outline: none;
    font-family: 'Manrope', sans-serif;
}

.custom-form-group input::placeholder {
    color: #555;
}

.custom-form-group input:focus {
    border-bottom: 1px solid #003366;
}

.btn-submit {
    background: linear-gradient(180deg, #005699 0%, #0099cc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    font-size: 24px;
    font-weight: 500;
    /* Medium */
    margin-top: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: 'Manrope', sans-serif;
}

.btn-submit:hover {
    opacity: 0.9;
}

.disclaimer {
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: 400;
    /* Regular */
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

/* ========================================================================= */
/* Ambient Background & Animation Toggle */
/* ========================================================================= */

.animation-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 100;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.animation-toggle:hover {
    opacity: 1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: rgba(0, 153, 204, 0.5);
    border-color: rgba(0, 153, 204, 0.8);
}

input:checked+.slider:before {
    transform: translateX(16px);
    background-color: #fff;
    box-shadow: 0 0 5px #00e5ff;
}

.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    mix-blend-mode: color-dodge;
    animation: drift 15s infinite ease-in-out alternate;
}

.orb-1 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.8) 0%, rgba(0, 86, 153, 0) 70%);
    top: -30vh;
    left: -30vw;
    animation-duration: 20s;
    animation-delay: 0s;
}

.orb-2 {
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.6) 0%, rgba(0, 51, 153, 0) 70%);
    bottom: -40vh;
    right: -30vw;
    animation-duration: 25s;
    animation-delay: -5s;
}

.orb-3 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.5) 0%, rgba(0, 102, 102, 0) 70%);
    top: 40vh;
    left: 20vw;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(15vw, -15vh) scale(1.1) rotate(5deg);
    }

    66% {
        transform: translate(-10vw, 20vh) scale(0.9) rotate(-5deg);
    }

    100% {
        transform: translate(-15vw, -10vh) scale(1.2) rotate(10deg);
    }
}

.main-wrapper {
    position: relative;
    z-index: 10;
}