/* Variables CSS */
:root {
    --color-primary: #691c32;
    --color-secondary: #8e2a46;
    --color-text: #003366;
    --bg-opacity: rgba(255, 255, 255, 0.9);
}

/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Deshabilitar selección de texto e imágenes */
body, img, h1, label, input, button {
    user-select: none;
}

/* Deshabilitar el arrastre de imágenes */
img {
    pointer-events: none;
}

/* Animación de fondo con gradientes en movimiento */
@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Estilo del body */
body {
    height: 100vh;
    margin: 0;
    background: linear-gradient(270deg, #081F5C, #54162B, #871D3E, #19384a);
    background-size: 400% 400%;
    animation: moveGradient 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo transparente */
.imagen-cecom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.40;
    z-index: 0;
}

/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shadowAnimation {
    0% {
        box-shadow: 0 0 30px rgba(8, 31, 92, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(8, 31, 92, 1);
    }
    100% {
        box-shadow: 0 0 30px rgba(8, 31, 92, 0.8);
    }
}

/* Contenedor principal */
.contenedor {
    background-color: var(--bg-opacity);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    animation: slideIn 0.8s ease-out, shadowAnimation 3s ease-in-out infinite;
}

/* Logo */
.logo {
    max-width: 250px;
    margin-bottom: 15px;
    animation: fadeIn 1s ease-in-out;
}

/* Títulos */
h1 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

/* Etiquetas */
label {
    color: var(--color-text);
    display: block;
    margin-top: 10px;
    font-weight: bold;
    animation: fadeIn 1s ease-in-out;
}

/* Campos de entrada */
.input-field {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    animation: fadeIn 1s ease-in-out;
}

/* Eliminar flechas de campos numéricos */
input[type="text"][inputmode="numeric"]::-webkit-outer-spin-button,
input[type="text"][inputmode="numeric"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Estilo cuando el campo está enfocado */
.input-field:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Botón de enviar */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.2s ease-in-out;
}

/* Hover del botón */
.submit-btn:hover {
    background-color: var(--color-secondary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Efecto al hacer clic */
.submit-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Responsividad para tablets */
@media (max-width: 768px) {
    .contenedor {
        padding: 20px;
    }
    .logo {
        max-width: 200px;
    }
    h1 {
        font-size: 1.4rem;
    }
    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Responsividad para móviles */
@media (max-width: 480px) {
    .contenedor {
        padding: 15px;
    }
    .logo {
        max-width: 180px;
    }
    h1 {
        font-size: 1.3rem;
    }
    .submit-btn {
        padding: 10px;
        font-size: 12px;
    }
}