.fondo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.colortexto {
    color: #ff5733;
}

.custom-class {
    color: #ffffff;
}

.divuno {
    display: flex;
}

/* Estilos del carrusel */
.carousel {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%;
    
}

/* Efecto de deslizamiento */
@keyframes moverTexto {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.mover-letras {
    animation: moverTexto 9s ease-in-out infinite;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    position: relative;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #666;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    background-color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #f97316;
}

.close-btn:hover {
    color: #f97316;
    transform: scale(1.1);
}

.modal-requisitos-container {
    width: 100%;
    margin-bottom: 50px;
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #f97316;
}

.modal-requisitos-container h2 {
    color: #c2410c;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 4px solid #c2410c;
    padding-bottom: 15px;
}

.requisitos-content {
    color: #333;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
}

.requisitos-content h3 {
    color: #c2410c;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #c2410c;
    padding-bottom: 15px;
}

.requisitos-content h4 {
    color: #ea580c;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    border-left: 6px solid #f97316;
    padding-left: 20px;
    background-color: #fff5eb;
    padding: 15px 20px;
}

.requisitos-content ul {
    list-style-type: disc;
    margin-left: 40px;
    margin-bottom: 25px;
}

.requisitos-content li {
    margin-bottom: 12px;
}

.requisitos-content p {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-left: 4px solid #f97316;
}

.modal-image-container {
    width: 100%;
    margin-bottom: 50px;
    text-align: center;
    background: #fff5eb;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #f97316;
}

.modal-image-container h2 {
    color: #c2410c;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 4px solid #c2410c;
    padding-bottom: 15px;
}

.modal-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.modal-pdf-container {
    width: 100%;
    margin-bottom: 40px;
    background-color: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #f97316;
}

.modal-pdf-container h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    padding: 20px 30px;
    background: #f97316;
}

.pdf-viewer {
    width: 100%;
    height: 800px;
    background-color: white;
}

.pdf-object {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    text-align: center;
    padding: 40px;
}

.pdf-fallback i {
    font-size: 6rem;
    color: #f97316;
    margin-bottom: 30px;
}

.pdf-fallback p {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.pdf-download-btn {
    background-color: #f97316;
    color: white;
    padding: 15px 40px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #f97316;
}

.pdf-download-btn:hover {
    background-color: white;
    color: #f97316;
}

.service-img {
    cursor: pointer;
    transition: transform 0.3s;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.service-img:hover {
    transform: scale(1.05);
}

.organigrama-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.titulo-naranja {
    color: #f97316 !important;
}

.subtitulo-naranja {
    color: #ea580c !important;
}

.border-naranja {
    border-color: #f97316 !important;
}

.texto-carrusel {
    color: #f97316 !important;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-img.zoom {
    animation: zoomIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .modal-content { padding: 20px 15px 40px; }
    .modal-requisitos-container,
    .modal-image-container { padding: 20px; }
    .modal-requisitos-container h2,
    .modal-image-container h2,
    .modal-pdf-container h2 { font-size: 1.8rem; }
    .pdf-viewer { height: 500px; }
    .close-btn { width: 50px; height: 50px; font-size: 30px; right: 15px; top: 15px; }
}

.bg-naranja {
    background-color: #f97316;
}
.hover\:bg-orange-600:hover {
    background-color: #ea580c;
}

/* Agrega esta regla al final de tu archivo estilos.css */

/* Botón estático - siempre visible */
button[type="submit"], 
#btnEnviar {
    background-color: #f97316 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    border: 2px solid #f97316 !important;
    transition: background-color 0.3s, transform 0.3s !important;
    cursor: pointer !important;
    width: 100% !important;
    font-size: 1rem !important;
    display: inline-block !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Efecto hover */
button[type="submit"]:hover, 
#btnEnviar:hover {
    background-color: #ea580c !important;
    transform: scale(1.05) !important;
}

/* Asegurar que el botón no se oculte */
.bg-orange-500 {
    background-color: #f97316 !important;
}

/* Asegurar que Font Awesome se muestre correctamente */
.fa-paper-plane {
    display: inline-block !important;
    margin-right: 0.5rem !important;
}
/* Estilos para el modal emergente */
#modalEmergente {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#modalEmergente > div {
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Asegurar que el botón de enviar sea siempre visible */
#btnEnviar,
button[type="submit"] {
    background-color: #f97316 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
    width: 100% !important;
    font-size: 1rem !important;
    display: inline-block !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

#btnEnviar:hover,
button[type="submit"]:hover {
    background-color: #ea580c !important;
    transform: scale(1.05) !important;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2) !important;
}

#btnEnviar:disabled,
button[type="submit"]:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Asegurar que el ícono se muestre */
.fa-paper-plane,
.fa-spinner {
    display: inline-block !important;
    margin-right: 0.5rem !important;
}
/* Estilos para el modal emergente */
#modalEmergente {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#modalEmergente.flex {
    display: flex;
}

#modalEmergente > div {
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}