/* =========================================
   Fuentes Personalizadas
   ========================================= */
@font-face {
    font-family: 'OCR A Ext';
    src: url('../fonts/OCRAEXT.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Schibsted Grotesk';
    src: url('../fonts/SchibstedGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'TT Autonomous';
    src: url('../fonts/TT Autonomous Trial Variable.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TT Autonomous Mono';
    src: url('../fonts/TT Autonomous Mono Trial Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset y transiciones suaves */
* {
    box-sizing: border-box;
    transition: all 0.25s ease;
}

body {
    /* Mantenemos tu fondo blanco / imagen clara */
    background-color: #f5f5f7;
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('../imgs/HeROES-ANoNIMOS2.jpg');
    /* background-image: url('../imgs/HeROES-ANoNIMOS2.jpg'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    color: #1d1d1f;
    font-family: 'Schibsted Grotesk', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* =========================================
   Contenedor del Formulario (Light Glassmorphism)
   ========================================= */
form {
    background-color: rgba(255, 255, 255, 0.633); /* Blanco semi-transparente */
    backdrop-filter: blur(6px); /* Desenfoque tipo cristal */
    -webkit-backdrop-filter: blur(4px); /* Soporte para Safari/iPhone */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Borde blanco para el reflejo del cristal */

    padding: 40px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 840px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); /* Sombra muy suave */
}

/* Contenedor del Icono Superior */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 64%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.05));
}


/* =========================================
   Título Principal Masivo (Texto con Degradado)
   ========================================= */
.form-title {
    text-align: center;
    font-family: 'TT Autonomous Mono', sans-serif;

    /* LA MAGIA FLUÍDA: Mínimo 34px, tamaño ideal 8vw (adapta al ancho), Máximo 64px */
    font-size: clamp(54px, 10vw, 94px);

    /* font-weight: 900; */
    text-transform: uppercase;
    /* letter-spacing: -1px; */

    line-height: 1.0;
    padding-top: 15px;
    padding-bottom: 10px;
    margin-top: -5px;

    margin-bottom: 25px;
    width: 100%;

    /* MAGIA DEL DEGRADADO */
    background-image: linear-gradient(170deg, #2644f5, #ae44f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Modifica la regla existente de la descripción para que quede así: */
.form-description {
    text-align: left;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-top: 0; /* Ajustado a cero para que no se encime con el título */
    margin-bottom: 30px;
}

.form-description {
    text-align: left;
    font-size: 16px;
    color: #161719; /* Gris oscuro para que resalte sobre el cristal */
    line-height: 1.6;
    margin-top: -10px;
    margin-bottom: 30px;
}

form div {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #24272c;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'TT Autonomous', sans-serif;
}

/* =========================================
   Inputs (Cristalinos)
   ========================================= */
input, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Borde muy tenue */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.4); /* Fondo translúcido */
    color: #1d1d1f;
    font-size: 15px;
    font-family: 'Schibsted Grotesk', sans-serif;
}

input::placeholder, textarea::placeholder {
    color: #6b7280; /* Gris medio para los placeholders */
}

/* Efecto Focus: Se vuelve blanco sólido para escribir cómodo */
input:focus, textarea:focus {
    outline: none;
    border-color: #000000;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

/* =========================================
   Corrección para el Autocompletado
   ========================================= */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.9) inset !important;
    -webkit-text-fill-color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    transition: background-color 5000s ease-in-out 0s;
}

textarea {
    resize: vertical;
}

/* =========================================
   Botón de Acción Principal (Negro)
   ========================================= */
button {
    width: 100%;
    padding: 15px;
    background-color: #2644f5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 10px;
    font-family: 'TT Autonomous', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

button:hover {
    background-color: #1a33db;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #e5e7eb;
    cursor: not-allowed;
    color: #9ca3af;
    transform: none;
}

/* =========================================
   Botón de Adjuntar Archivo
   ========================================= */
input[type="file"] {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
    border: 1px dashed rgba(0, 0, 0, 0.2);
}

input[type="file"]::file-selector-button {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 16px;
    margin-right: 15px;
    cursor: pointer;
    font-family: 'TT Autonomous', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
}

input[type="file"]::file-selector-button:hover {
    background-color: #f3f4f6;
}

/* =========================================
   Popups y Modales (Cristal Claro)
   ========================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.4); /* Cortina ligeramente oscura para resaltar el mensaje */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}

.popup-content {
    background: rgba(255, 255, 255, 0.75); /* Cristal blanco */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
}

.popup-overlay.activo {
    opacity: 1;
    visibility: visible;
}

.popup-overlay.activo .popup-content {
    transform: scale(1);
}

#popup-titulo {
    margin-top: 0;
    font-size: 22px;
    font-weight: 600;
    font-family: 'TT Autonomous', sans-serif;
}

#popup-texto {
    font-size: 16px;
    line-height: 1.6;
    color: #1a1b1e;
    margin-bottom: 20px;
}

.btn-cerrar {
    margin-top: 10px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1f2937;
    width: auto;
    padding: 10px 24px;
}

.btn-cerrar:hover {
    background-color: rgba(38, 68, 245, 0.08); /* Fondo blanco con un 8% del azul principal */
    border-color: rgba(38, 68, 245, 0.3); /* Borde sutil azul */
    color: #2644f5; /* El texto cambia al azul principal */
}

/* =========================================
   Indicador de Carga (Spinner Animado)
   ========================================= */
.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: girar 1s linear infinite;
    margin: 0 auto;
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   Diseño Adaptable (Responsive para Móviles)
   ========================================= */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    form {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .form-icon {
        width: 66%;
        height: auto;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-description {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    input, textarea, button {
        font-size: 14px;
        padding: 12px 14px;
    }

    .popup-content {
        padding: 25px 20px;
    }

    #popup-titulo {
        font-size: 19px;
    }

    #popup-texto {
        font-size: 14px;
    }

    .form-title {
        line-height: 1.0;
        margin-bottom: 20px;
        letter-spacing: 0px;
    }
}

