/* Centrar contenido */
body {
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Estilos del formulario */
form {
    background: white;
    padding: 9px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-top: 20px;
    max-width: 90%;
    width: 400px;
}

/* Estilos de los inputs */
input {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos de los botones */
button {
    padding: 10px;
    width: 120px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
}

button[name="validar"] {
    background: #28a745;
    color: white;
}

#cancelar {
    background: #dc3545;
    color: white;
}

button:hover {
    opacity: 0.8;
}

/* Contenedor del PDF */
.pdf-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Estilos del iframe */
iframe {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 1px solid #ccc;
}

/* Mensajes de error */
.error {
    color: red;
    font-size: 16px;
    margin-top: 10px;
}

/* ✅ Estilos Responsivos */
@media (max-width: 768px) {
    form {
        width: 90%;
        max-width: 350px;
    }

    input {
        width: 95%;
    }

    button {
        width: 100px;
        font-size: 14px;
    }

    iframe {
        width: 100%;
        height: 300px;
    }
}
/* Título principal responsivo */
.responsive-title {
    font-size: 3.5vw; /* Se adapta dinámicamente al ancho de la pantalla */
    color: black;
    font-weight: bold;
    max-width: 100%;
    white-space: nowrap; /* Evita saltos de línea innecesarios */
    text-align: center;
}

/* Eslogan responsivo */
.logo-subtext {
    color: #f87306;
    font-size: 1.2vw; /* Se ajusta automáticamente */
    max-width: 300px;
    text-align: center;
    margin: 0 auto; /* Mantiene el texto centrado */
}

/* Ajuste en pantallas grandes (Laptops y PC) */
@media (min-width: 1200px) {
    .responsive-title {
        font-size: 36px; /* Fijo en pantallas grandes */
    }
    .logo-subtext {
        font-size: 14px;
    }
}

/* Ajuste en tablets */
@media (max-width: 991px) {
    .responsive-title {
        font-size: 28px;
    }
    .logo-subtext {
        font-size: 12px;
    }
}

/* Ajuste en celulares */
@media (max-width: 576px) {
    .responsive-title {
        font-size: 20px; /* Reduce el tamaño del título */
        white-space: normal; /* Permite saltos de línea */
        word-wrap: break-word; /* Evita que el texto se desborde */
    }
    .logo-subtext {
        font-size: 10px;
        max-width: 80%;
    }
}

@media (max-width: 576px) { 
    .logo-subtext {
        font-size: 10px; /* Reduce el tamaño en pantallas pequeñas */
        max-width: 80%; /* Ajusta el ancho */
        white-space: normal; /* Permite saltos de línea */
        word-wrap: break-word; /* Asegura que las palabras largas se ajusten */
        text-align: center; /* Centra el texto */
        margin: 0 auto; /* Mantiene el bloque centrado */
    }

    form {
        padding: 15px;
    }

    input {
        width: 100%;
        font-size: 14px;
    }

    button {
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }

    iframe {
        height: 250px;
    }
}
