/* Estilos para autocompletado del navegador */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #EBECE8 inset !important;
    box-shadow: 0 0 0 1000px #EBECE8 inset !important;
    -webkit-text-fill-color: #000000 !important;
    background-color: #EBECE8 !important;
}

/* Estilos base para inputs y selects */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
select {
    background-color: #EBECE8 !important;
    color: #000000 !important;
    border-radius: 6px;
    border-color: #029E99;
}

/* Estilos para el estado focus */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
select:focus {
    background-color: #EBECE8 !important;
    color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(2, 158, 153, 0.25) !important;
    border-color: #029E99;
    outline: none;
}

/* Estilos generales para todos los inputs */
input {
    color: #000000 !important;
    background-color: #EBECE8 !important;
}

/* Estilos para las opciones de los select */
option {
    color: #000000 !important;
    background-color: #EBECE8 !important;
}

/* Placeholder */
.form-control::placeholder {
    color: #000000;
    opacity: 1;
}

/* Estilos específicos para los campos del formulario */
.form-control {
    border-radius: 6px !important;
    border-color: #029E99;
    background-color: #EBECE8 !important;
    color: #000000 !important;
    text-align: center;
}

.form-control:focus {
    background-color: #EBECE8 !important;
    color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(2, 158, 153, 0.25) !important;
    border-color: #029E99;
}

/* Estilos para selects específicos */
select {
    background-color: #EBECE8 !important;
    color: #000000 !important;
}

/* Mantener los estilos que ya funcionan bien */
body {
    background-color: #EBECE8;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

label {
    color: #EBECE8;
}

.swal2-title {
    color: #ffffff !important;
}

.swal2-text {
    color: #ffffff !important;
}

.footer {
    background-color: #142448;
    padding: 20px 0;
    font-size: 14px;
    transition: all 0.3s;
    flex-shrink: 0;
    border-top: 1px solid #59d2ec;
}

.container {
    background-color: #142448;
    padding: 2.5rem;
    max-width: 1040px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px #ffffff;
}

h1 {
    color: #01bfea;
    font-weight: 600;
    margin: 2rem 0 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h1:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #029E99;
    margin: 0.5rem auto 0;
    margin-top: 15px;
}

.title {
    text-align: center;
}

.intro-text {
    color: #EBECE8;
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
    line-height: 1.7;
    text-align: center;
}

.sections {
    color: #59D2EC;
    text-align: center;
    margin-bottom: 2%;
}

.btn-wide {
    width: 200px;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-outline-primary {
    color: #029E99;
    border-color: #029E99;
}

.btn-outline-primary:hover {
    background-color: #59d2ec;
    color: #EBECE8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    animation: fadeIn 0.6s ease-out forwards;
}

img {
    width: 100%;
    height: 435px;
    display: block;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
        text-align: justify;
        text-justify: inter-character;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .intro-text {
        text-align: justify;
        text-justify: inter-word;
    }
    
    img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.6rem;
        text-align: justify;
        text-justify: inter-character;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: #142448 !important;
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        border: 1px solid #59d2ec;
    }
}