@font-face {
    font-family: 'Great_VibesA';
    src: url('../fonts/greatvibes.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    background: #f4f4f4;
    color: #4a4a4a;
    font-family: 'Georgia', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 10px;
}

.container {
    text-align: center;
    max-width: 900px;
}

/*h1 {
    font-size: 2.8rem;
    color: rgb(149, 203, 232);
    font-family: 'Great_VibesA', cursive;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 4px solid rgb(149, 203, 232);
    animation: typing 3s steps(30, end), blink 0.7s infinite;
    
    margin-bottom: 30px;
}*/

.typing-title {
    font-size: clamp(1.8rem, 6rem - 7vw, 4rem);
    color: rgb(149, 203, 232);
    font-family: 'Great_VibesA', cursive;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    margin-top: 10px;
    animation: typing 3s steps(30, end) forwards;
    position: relative;
}

/* Ajuste extra para móviles muy pequeños */
@media (max-width: 480px) {
    .typing-title {
        font-size: 1.9rem;
    }
}

.cursor {
    display: inline-block;
    animation: blink 0.8s steps(2, start) infinite;
    color: rgb(149, 203, 232);
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .typing-title {
        white-space: normal;
        word-wrap: break-word;
        animation: none;
    }
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-custom {
    background: rgb(149, 203, 232);
    color: #fff;
    border: none;
    font-family: 'Georgia', serif;
}

.btn-custom:hover {
    background: rgb(128, 174, 198);
}

input,
select {
    font-family: 'Georgia', serif;
    color: #4a4a4a;
}

@media (max-width: 576px) {
    h1 {
        padding-top: 10px;
        font-size: 50px;
    }

    .card img {
        height: auto;
    }
}

.radio-button-container {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.radio-button-container input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background-color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.radio-button-container input[type="radio"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.radio-button-container label {
    font-size: 16px;
    color: #333;
}

.radio-button-container input[type="radio"]:checked+label {
    color: #007bff;
}

#exitoModal .modal-content {
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Modal styles */

@keyframes zoomFade {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.animated-check {
    animation: zoomFade 0.5s ease-out forwards;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.blink {
    animation: blink 2s infinite;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Animacion de inicio pagina */
.fade-in-body {
    animation: fadeInBody 0.6s ease-out;
}

.select2-container .select2-selection--single {
    height: 48px;
    /* más alto para parecer input moderno */
    padding: 6px 12px;
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    /* alinear flecha */
}

.select2-results__option--highlighted {
    background-color: #0d6efd !important;
    /* color Bootstrap */
    color: white !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    text-align: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered[title] {
    text-align: left;
    /* Cuando hay un valor, vuelve a la izquierda */
}