
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main, .main-content {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}


/*=============================================*/


.titulo01 {
    margin: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fffffffa;
}

.header01 {
    background: #d44c9d;
    background: linear-gradient(90deg, rgba(212, 76, 157, 1) 0%, rgba(168, 37, 127, 1) 50%, rgba(128, 14, 92, 1) 100%);
    box-shadow: 4px 4px 10px rgb(205, 205, 205);
}


/* Fondo oscuro personalizado */
.swal2-container {
    background-color: rgba(0, 0, 0, 0.8) !important;
    /* Fondo más oscuro */
}

/* Bloquear interacción con el fondo */
.swal2-container {
    pointer-events: auto !important;
    /* Asegura que el fondo no sea clickeable */
}

.valid {
    border-color: green;
}

.invalid {
    border-color: red;
}

.valid-feedback {
    color: green;
}

.invalid-feedback {
    color: red;
}

.whatsapp-button {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

/* =============================================*/

.fs-7 {
    font-size: .7rem !important;
}


.card-header {
    font-size: 1.5rem;
    background-color: #972069 !important;
    color: #ffffff !important;
    font-weight: bolder !important;
    word-spacing: 4px !important;
    letter-spacing: 1px !important;
}

.card {
    box-shadow: 4px 4px 10px rgb(205, 205, 205);
    border: none;
    border-radius: 50px !important;
    animation: fadeInCard 0.5s ease-out forwards;
}

/* Animación sutil y elegante de transición entre cards */
@keyframes fadeInCard {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-body {
    font-size: 1.3rem;
}

/*===================================================*/

P {
    text-align: justify;
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* Aplicamos la animación al botón */
#scroll-to-top:hover {
    animation: bounce 0.8s;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semi-transparente */
    z-index: 9999;
    /* Asegura que esté por encima de otros elementos */
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Estilos para el botón de inicio de registro */

/* Contenedor que centra todo en su interior */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0; /* Espaciado opcional arriba y abajo */
}

/* Estilo del botón más grande */
.btn-gradient {
  background: linear-gradient(135deg, #8a2be2 0%, #ff69b4 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px; 
  padding: 16px 36px;  
  font-size: 1.2rem;   
  font-weight: 700;    
  letter-spacing: 0.5px; 
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.35);
  cursor: pointer;
}

/* Efecto Hover (al pasar el ratón) */
.btn-gradient:hover {
  background: linear-gradient(135deg, #ff69b4 0%, #8a2be2 100%);
  color: #ffffff;
  transform: translateY(-3px); /* Eleva un poco más el botón */
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.45);
}

/* Efecto Active (al hacer clic) */
.btn-gradient:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

/* =============================================*/

/* Estilo para atras botón */

/* Estilo del botón más grande */
.btn-gradient-back {
  background: linear-gradient(135deg, #671f66 0%, #442132 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px; 
  padding: 16px 36px;  
  font-size: 1.2rem;   
  font-weight: 700;    
  letter-spacing: 0.5px; 
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.35);
  cursor: pointer;
}

/* Efecto Hover (al pasar el ratón) */
.btn-gradient-back:hover {
  background: linear-gradient(135deg, #67237f 0%, #b85283 100%);
  color: #ffffff;
  transform: translateY(-3px); /* Eleva un poco más el botón */
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.45);
}

/* Efecto Active (al hacer clic) */
.btn-gradient-back:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

/* =============================================*/

/* Estilos personalizados para los checkboxes de Medios */
.medio-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #8a2be2;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    position: relative;
    top: 5px;
    margin-right: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.medio-checkbox:checked {
    background: linear-gradient(135deg, #8a2be2 0%, #ff69b4 100%);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.4);
}

.medio-checkbox:checked::after {
    content: '\2714';
    /* Palomita */
    font-size: 14px;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.medio-checkbox:hover {
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
    border-color: #ff69b4;
}

.medio-checkbox+label {
    cursor: pointer;
    font-weight: 500;
    color: #444;
    transition: color 0.3s ease;
}

.medio-checkbox:checked+label {
    color: #8a2be2;
    font-weight: 700;
}

/*=============================================*/

.fs-7 {
    font-size: .7rem !important;
}
/*=============================================*/


.instructions-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    overflow: hidden;
}
.instructions-header {
    background: linear-gradient(135deg, #972069, #c42b8a);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 20px;
    text-align: center;
    position: relative;
    letter-spacing: 0.5px;
}
.info-box {
    background: #f8f9fa;
    border-left: 5px solid #972069;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.info-box-icon {
    font-size: 2.2rem;
    color: #972069;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.pulse-effect {
    animation: pulse-animation 2.5s infinite;
}
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(151, 32, 105, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(151, 32, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(151, 32, 105, 0); }
}
@keyframes float-img {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.hero-img {
    animation: float-img 3s ease-in-out infinite;
    max-height: 240px;
}
.highlight-text {
    color: #972069;
    font-weight: 700;
}
.btn-pulse {
    border-radius: 50px !important;
    padding: 12px 35px !important;
    font-size: 1.1rem !important;
}
.instructions-card .card-body {
    padding: 2.5rem 2rem !important;
}
[data-bs-theme="dark"] .info-box {
    background: #2b2b2b;
    color: #e4e4e4;
}


/* Estado inválido (Rojo) para medios de convocatoria */
.medio-checkbox.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5) !important;
}

.medio-checkbox.is-invalid + label {
    color: #dc3545 !important;
    font-weight: 600;
}
