html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
}

    .login-title h1 {
        font-size: 27px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .login-title h2 {
        font-size: 22px;
        font-weight: 400;
        margin: 0;
    }

.login-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 25px;
}

.login-box .form-label {
    font-weight: 600;
}

.login-box .form-control {
    height: 50px;
    font-size: 16px;
    border-radius: 8px;
}

.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    background-color: #0d6efd;
    color: white;
}

    .btn-login:hover {
        background-color: #0b5ed7;
    }

@media (max-width: 480px) {

    .login-container {
        padding: 15px;
    }

    .login-box {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .login-title h1 {
        font-size: 23px;
    }

    .login-title h2 {
        font-size: 20px;
    }
}


/* =========================================================
   LISTA DE FILAS
   ========================================================= */

.lista-filas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fila-riego {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

    .fila-riego:active {
        background-color: #f1f3f5;
    }

.fila-datos {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fila-acequia {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
}

.fila-nombre {
    font-size: 19px;
    font-weight: 600;
}

.fila-numero {
    font-size: 14px;
    color: #6c757d;
}

.fila-flecha {
    font-size: 32px;
    color: #6c757d;
    margin-left: 10px;
}


/* =========================================================
   PANTALLA DE RIEGOS
   ========================================================= */

.riegos-cabecera {
    text-align: center;
    margin-bottom: 20px;
}

    .riegos-cabecera h2 {
        margin-bottom: 6px;
        font-size: 1.7rem;
        font-weight: 700;
    }

.riegos-ubicacion {
    font-size: 1rem;
    color: #6c757d;
}


/* ---------------------------------------------------------
   LISTA
   --------------------------------------------------------- */

.lista-riegos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ---------------------------------------------------------
   TARJETA
   --------------------------------------------------------- */

.tarjeta-riego {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: #ffffff;
    border: 1px solid #d9dee3;
    border-radius: 12px;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

    .tarjeta-riego:hover {
        color: #212529;
        text-decoration: none;
        background: #f8f9fa;
    }

    .tarjeta-riego:active {
        background: #f1f3f5;
    }


/* ---------------------------------------------------------
   CABECERA DEL RIEGO
   --------------------------------------------------------- */

.riego-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 42px 13px 16px;
    background: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
}

.riego-titulo {
    font-size: 0.9rem;
    font-weight: 700;
    color: #495057;
}

.riego-numero {
    font-size: 1.15rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   DATOS PRINCIPALES
   --------------------------------------------------------- */

.riego-datos {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr 1fr;
    gap: 0;
    padding: 14px 16px 12px 16px;
}

.riego-dato {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dato-titulo {
    display: block;
    margin-bottom: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}

.dato-valor {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}


/* ---------------------------------------------------------
   DATOS SECUNDARIOS
   --------------------------------------------------------- */

.riego-opciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #eeeeee;
    padding: 10px 16px 12px 16px;
    background: #fafafa;
}

    .riego-opciones > div {
        min-width: 0;
    }


/* ---------------------------------------------------------
   FLECHA
   --------------------------------------------------------- */

.riego-flecha {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: 300;
    color: #adb5bd;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 480px) {

    .riegos-cabecera {
        margin-bottom: 16px;
    }

        .riegos-cabecera h2 {
            font-size: 1.5rem;
        }

    .riegos-ubicacion {
        font-size: 0.9rem;
    }


    .lista-riegos {
        gap: 12px;
    }


    .tarjeta-riego {
        padding: 0;
        border-radius: 10px;
    }


    .riego-cabecera {
        padding: 11px 38px 11px 13px;
    }

    .riego-titulo {
        font-size: 0.82rem;
    }

    .riego-numero {
        font-size: 1.05rem;
    }


    .riego-datos {
        grid-template-columns: 1fr 1fr;
        row-gap: 13px;
        padding: 13px;
    }


    .riego-opciones {
        grid-template-columns: repeat(3, 1fr);
        padding: 9px 13px 11px 13px;
    }


    .dato-titulo {
        font-size: 0.66rem;
    }

    .dato-valor {
        font-size: 0.95rem;
    }


    .riego-flecha {
        right: 9px;
        font-size: 1.8rem;
    }
}
