@font-face {
    font-family: 'Tamrin';
    src: url('fuentes/tamrin.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: #8aae70;
    position: relative;
    overflow-x: hidden;
}
 
.EsquinaCirculo {
    position: absolute;
    height: 213px;
    width: 238px;
    border-top-right-radius: 100%;
    background-color: #4d70bc;
    left: 0;
    bottom: 0;
}

.EsquinaCurva {
    position: absolute;
    right: 0;
    top: 0;
    height: 210px;
    width: 200px;
}

.FondoVerde {
    position: absolute;
    width: 782px;
    height: 435px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 6%;
    background-color: #a9cd46;
}

.fondoAzul-Celular {
    display: none;
}

.fondoAzul {
    position: absolute;
    height: 438px;
    width: 445px;
    top: 50%;
    left: 27.5%;
    transform: translate(-50%, -50%);
}

/* Contenedor principal del encabezado (Logo + Textos) */
.ContenedorLogo {
    position: absolute;
    top: 3%;           
    left: 1%;         
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

/* Imagen del Logo */
.Logo {
    border-radius: 50%;
    width: 70px;
    height: 70px;
}

.TextosLogo {
    display: flex;
    flex-direction: column;
}

.Cooperadora {
    font-family: 'Tamrin', sans-serif;
    font-size: 8px;   /* Aumentado (antes era 11px) */
    font-weight: bold;
    color: black;
    margin: 0;
    white-space: nowrap;
}

.Instituto {
    font-family: 'Tamrin', sans-serif;
    font-size: 6px;    /* Aumentado (antes era 7px) */
    color: black;
    margin: 0;
    white-space: nowrap;
}

.Verde {
    color: #a9cd46;
}

/* --- ILUSTRACIÓN PUENTE Y TEXTO INFERIOR --- */
.ContenedorLogoNegro {
    position: absolute;
    top: 52%;          /* Ajuste leve para mantenerlo centrado verticalmente con su nuevo tamaño */
    left: 24%;         /* Se conserva la posición original */
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.LogoNegro {
    width: 260px;      
    height: auto;
}

.ISFDYT {
    font-family: 'Tamrin', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #4d70bc; /* o el azul de fondo */
    margin-top: 10px;
    letter-spacing: 1px;
}

.Necochea {
    font-family: 'Tamrin', sans-serif;
    font-size: 9px;
    color: black;
    text-transform: lowercase;
    margin-top: 2px;
}

.Contenedor {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 380px;
    z-index: 2;
}

.form { 
    width: 100%;
    transform: none; /* Se elimina el desplazamiento previo */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.form h2 { 
    grid-column: 1 / 3;
    text-align: center;
    font-size: 20px;
    margin-bottom: 12px;
    font-family: 'Tamrin', sans-serif;
    letter-spacing: 1px;
}

.campo { 
    display: flex;
    flex-direction: column;
}


.campo label {
    margin-left: 8px;
    font-size: 9px;
    margin-bottom: 3px;
    font-family: 'Tamrin';
}

.campo input,
.campo select { 
    width: 100%;
    height: 27px;
    box-sizing: border-box;
    border: none;
    border-radius: 15px;
    padding: 3px 8px;
    font-size: 9px;
    font-family: sans-serif; 
}

.campo ::placeholder{
    color: #d6d6d6;
    font-size: 10px;
}

.email { 
    grid-column: 1 / 3;
    font-family: 'Tamrin';
}

.error {
    color: #c62828;
    font-size: 10px;
    font-family: sans-serif;
    font-weight: bold;
    align-self: flex-start;
    margin: 0;
}

.form button { 
    grid-column: 1 / 3;
    justify-self: center;
    width: 110px;
    height: 20px;
    border-radius: 15px;
    background-color: white;
    font-size: 8px;
    margin-top: 5px;
    border: none;
    font-family: 'Tamrin';
}

.login, a{ 
    grid-column: 1 / 3;
    text-align: center;
    font-size: 10px;
    margin: 0px;
    font-family: sans-serif;
    text-decoration: none;
    color: #666666;
    font-weight: bold;
}

.op{
    color: #d6d6d6;
}

@media screen and (max-width: 1400px) and (min-width: 768px), screen and (max-height: 800px) {
    /* Escalado proporcional de la tarjeta de fondo */
    .FondoVerde {
        width: 90%;
        max-width: 782px;
        height: 436px;
        transform: translate(-50%, -50%) scale(0.9);
    }

    /* Contenedor alineado verticalmente al centro sin desfases */
    .Contenedor {
        right: 15px;
        top: 50%;
        width: 350px;
        transform: translateY(-50%);
    }
}

/* ===================================================
   MEDIA QUERY PARA PANTALLAS 4K / ULTRA-HD (>= 2560px)
   =================================================== */
@media screen and (min-width: 2560px) {
    .EsquinaCirculo {
        height: 400px;
        width: 440px;
    }

    .EsquinaCurva {
        height: 400px;
        width: 380px;
    }

    .FondoVerde {
        width: 1600px;
        height: 880px;
        border-radius: 60px;
    }

    .ContenedorLogo {
        top: 30px;
        left: 30px;
        gap: 20px;
    }

    .Logo {
        width: 110px;
        height: 110px;
    }

    .Cooperadora {
        font-size: 20px;
    }

    .Instituto {
        font-size: 14px;
    }

    .LogoNegro {
        width: 420px;
    }

    .ISFDYT {
        font-size: 22px;
        margin-top: 10px;
    }

    .Necochea {
        font-size: 16px;
    }

    .Contenedor {
        right: 50px;
        width: 640px;
    }

    .form {
        gap: 12px 20px;
    }

    .form h2 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .campo label {
        margin-left: 12px;
        font-size: 16px;
        margin-bottom: 4px;
    }

    .campo input,
    .campo select {
        height: 52px;
        border-radius: 24px;
        padding: 0 20px;
        font-size: 18px;
    }

    .campo ::placeholder {
        font-size: 18px;
    }

    .error {
        font-size: 18px;
    }

    .form button {
        width: 200px;
        height: 44px;
        border-radius: 24px;
        font-size: 16px;
        margin-top: 10px;
    }

    .login, .login a {
        font-size: 18px;
    }
}

@media screen and (max-width: 767px) {
    html, body {
        width: 100% !important;
        min-height: 100vh !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background-color: #8dae6b !important;
        margin: 0 !important;
        padding: 0 0 50px 0 !important;
        display: block !important;
        position: relative !important;
    }

    /* Ocultar únicamente las decoraciones de escritorio */
    .EsquinaCirculo,
    .EsquinaCurva,
    .fondoAzul,
    .ContenedorLogoNegro {
        display: none !important;
    }

    /* Transformar el FondoVerde en un contenedor transparente para mostrar su contenido */
    .FondoVerde {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        display: block !important;
    }

    .fondoAzul-Celular {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
        line-height: 0 !important;
        z-index: 1 !important;
    }

    .fondoAzul-Celular img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .ContenedorLogo {
        position: absolute !important;
        top: 18px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 92% !important;               /* Ocupa el área disponible sin salirse */
        max-width: 360px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: clamp(4px, 1.5vw, 8px) !important;
        z-index: 99 !important;
    }

    /* Imagen del logo */
    .Logo {
        width: clamp(26px, 8vw, 40px) !important;
        height: clamp(26px, 8vw, 40px) !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    .TextosLogo {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;              /* Permite achicarse dentro de Flexbox */
        flex-shrink: 1 !important;
    }

    /* Título principal */
    .Cooperadora {
        position: static !important;
        transform: none !important;
        font-size: clamp(6.5px, 2.1vw, 9.5px) !important;
        color: #000000 !important;
        white-space: normal !important;        /* Permite adaptarse sin cortarse */
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    /* Subtítulo */
    .Instituto {
        position: static !important;
        transform: none !important;
        font-size: clamp(5px, 1.5vw, 7px) !important;
        color: #000000 !important;
        white-space: normal !important;        /* Permite adaptarse sin cortarse */
        line-height: 1.1 !important;
        margin: 1px 0 0 0 !important;
    }

    /* Formulario centrado abajo */
    .Contenedor {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 85% !important;
        max-width: 360px !important;
        margin: 25px auto 0 auto !important;
        padding-top: 0 !important;
        transform: none !important;
        z-index: 5 !important;
    }

    .form {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        transform: none !important;
    }

    .form h2 {
        font-size: 22px !important;
        font-weight: bold !important;
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    .campo, .email, .error, .form button, .login {
        width: 100% !important;
    }

    .campo label {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }

    .campo input, .campo select {
        width: 100% !important;
        height: 38px !important;
        font-size: 11px !important;
        border-radius: 20px !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    .form button {
        width: 160px !important;
        height: 36px !important;
        font-size: 11px !important;
        margin: 15px auto 0 auto !important;
        border-radius: 20px !important;
    }

    .login, .login a {
        color: #000000 !important;
        font-size: 11px !important;
        text-align: center !important;
    }
}